CookieDateFormat doesn't always use en_US locale

This commit is contained in:
Trustin Lee 2009-03-15 15:39:41 +00:00
parent 5f676a83af
commit d020ffe44c

View File

@ -23,6 +23,7 @@
package org.jboss.netty.handler.codec.http;
import java.text.SimpleDateFormat;
import java.util.Locale;
import java.util.TimeZone;
/**
@ -35,7 +36,7 @@ final class CookieDateFormat extends SimpleDateFormat {
private static final long serialVersionUID = 1789486337887402640L;
CookieDateFormat() {
super("E, d-MMM-y HH:mm:ss z");
super("E, d-MMM-y HH:mm:ss z", Locale.ENGLISH);
setTimeZone(TimeZone.getTimeZone("GMT"));
}
}