shale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r473628 - /shale/framework/trunk/shale-remoting/src/main/java/org/apache/shale/remoting/impl/AbstractResourceProcessor.java
Date Sat, 11 Nov 2006 02:09:31 GMT
Author: craigmcc
Date: Fri Nov 10 18:09:30 2006
New Revision: 473628

URL: http://svn.apache.org/viewvc?view=rev&rev=473628
Log:
SHALE-270 Ensure that the timestamp generated for HTTP headers always uses
the US spellings of the day and month abbreviations, as required by the
HTTP spec.  Thanks to Ryan Lubke for pointing out the fix.

Modified:
    shale/framework/trunk/shale-remoting/src/main/java/org/apache/shale/remoting/impl/AbstractResourceProcessor.java

Modified: shale/framework/trunk/shale-remoting/src/main/java/org/apache/shale/remoting/impl/AbstractResourceProcessor.java
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-remoting/src/main/java/org/apache/shale/remoting/impl/AbstractResourceProcessor.java?view=diff&rev=473628&r1=473627&r2=473628
==============================================================================
--- shale/framework/trunk/shale-remoting/src/main/java/org/apache/shale/remoting/impl/AbstractResourceProcessor.java
(original)
+++ shale/framework/trunk/shale-remoting/src/main/java/org/apache/shale/remoting/impl/AbstractResourceProcessor.java
Fri Nov 10 18:09:30 2006
@@ -27,6 +27,7 @@
 import java.util.Date;
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.Locale;
 import java.util.Map;
 import java.util.TimeZone;
 import javax.faces.context.FacesContext;
@@ -185,7 +186,8 @@
      * Note that usage of this helper must be synchronized.</p>
      */
     private static SimpleDateFormat format =
-            new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz");
+            new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz",
+                                 Locale.US);
     static {
         format.setTimeZone(TimeZone.getTimeZone("GMT"));
     }



Mime
View raw message