Author: rjung
Date: Mon Oct 17 06:21:44 2011
New Revision: 1185020

URL: http://svn.apache.org/viewvc?rev=1185020&view=rev
Log:
Always format juli date and time stamps in US
locale (currently the class is only used by
the OneLineFormatter).

Modified:
    tomcat/trunk/java/org/apache/juli/DateFormatCache.java

Modified: tomcat/trunk/java/org/apache/juli/DateFormatCache.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/DateFormatCache.java?rev=1185020&r1=1185019&r2=1185020&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/DateFormatCache.java (original)
+++ tomcat/trunk/java/org/apache/juli/DateFormatCache.java Mon Oct 17 06:21:44 
2011
@@ -21,6 +21,7 @@ package org.apache.juli;
 
 import java.text.SimpleDateFormat;
 import java.util.Date;
+import java.util.Locale;
 import java.util.TimeZone;
 
 /**
@@ -59,8 +60,8 @@ public class DateFormatCache {
      * Replace the millisecond formatting character 'S' by
      * some dummy characters in order to make the resulting
      * formatted time stamps cacheable. Our consumer might
-     * choose to replace the dummies with the actual milliseconds
-     * because that's relatively cheap.
+     * choose to replace the dummy chars with the actual
+     * milliseconds because that's relatively cheap.
      */
     private String tidyFormat(String format) {
         boolean escape = false;
@@ -123,7 +124,7 @@ public class DateFormatCache {
             for (int i = 0; i < cacheSize; i++) {
                 cache[i] = null;
             }
-            formatter = new SimpleDateFormat(format);
+            formatter = new SimpleDateFormat(format, Locale.US);
             formatter.setTimeZone(TimeZone.getDefault());
             this.parent = parent;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to