myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcrawf...@apache.org
Subject svn commit: r1339407 - /myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
Date Wed, 16 May 2012 22:41:45 GMT
Author: gcrawford
Date: Wed May 16 22:41:44 2012
New Revision: 1339407

URL: http://svn.apache.org/viewvc?rev=1339407&view=rev
Log:
TRINIDAD-2266 DateConverter should keep hint consistent across server locales 

Thanks to Yee-Wah

Modified:
    myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java

Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java?rev=1339407&r1=1339406&r2=1339407&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
(original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/DateTimeConverter.java
Wed May 16 22:41:44 2012
@@ -1987,7 +1987,7 @@ public class DateTimeConverter extends j
 
   static
   {
-    Calendar dateFactory = Calendar.getInstance();
+    Calendar dateFactory = Calendar.getInstance(Locale.US);
     dateFactory.set(1998, 10, 29, 15, 45);
     _EXAMPLE_DATE = dateFactory.getTime();
     



Mime
View raw message