You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2007/02/26 17:10:42 UTC

svn commit: r511873 - /incubator/roller/branches/roller_3.1/src/org/apache/roller/ui/core/BasePageModel.java

Author: snoopdave
Date: Mon Feb 26 08:10:41 2007
New Revision: 511873

URL: http://svn.apache.org/viewvc?view=rev&rev=511873
Log:
Fix for ROL-1341: weblog entry editor calendar problem in German browser locale

Modified:
    incubator/roller/branches/roller_3.1/src/org/apache/roller/ui/core/BasePageModel.java

Modified: incubator/roller/branches/roller_3.1/src/org/apache/roller/ui/core/BasePageModel.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.1/src/org/apache/roller/ui/core/BasePageModel.java?view=diff&rev=511873&r1=511872&r2=511873
==============================================================================
--- incubator/roller/branches/roller_3.1/src/org/apache/roller/ui/core/BasePageModel.java (original)
+++ incubator/roller/branches/roller_3.1/src/org/apache/roller/ui/core/BasePageModel.java Mon Feb 26 08:10:41 2007
@@ -90,7 +90,7 @@
                 DateFormat.SHORT, request.getLocale());
         if (sdf instanceof SimpleDateFormat)
         {
-            return ((SimpleDateFormat)sdf).toLocalizedPattern();
+            return ((SimpleDateFormat)sdf).toPattern();
         }
         return "yyyy/MM/dd";
     }
@@ -101,7 +101,7 @@
                 DateFormat.MEDIUM, request.getLocale());
         if (sdf instanceof SimpleDateFormat)
         {
-            return ((SimpleDateFormat)sdf).toLocalizedPattern();
+            return ((SimpleDateFormat)sdf).toPattern();
         }
         return "MMM dd, yyyy";
     }