The date format for the expires HTTP header generated by DispatcherHelper dependent on the locale of the server on which CCM runs. This caused the creation of an invalid expires header on systems with an locale other than english.

git-svn-id: https://svn.libreccm.org/ccm/trunk@4380 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-10-17 06:32:16 +00:00
parent f2403b0ce6
commit a7a1b39e55
1 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ import java.util.Enumeration;
import java.util.Locale;
import java.util.Set;
import java.util.TimeZone;
import java.util.Locale;
import javax.mail.MessagingException;
import javax.servlet.RequestDispatcher;
@ -78,7 +79,8 @@ public final class DispatcherHelper implements DispatcherConstants {
return;
}
rfc1123_formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z");
rfc1123_formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z",
Locale.ROOT);
rfc1123_formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
// set the defaults