CookieDateFormat doesn't always use en_US locale
This commit is contained in:
parent
5f676a83af
commit
d020ffe44c
@ -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"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user