Author: dbkr
Date: 2007-02-12 22:19:30 +0000 (Mon, 12 Feb 2007)
New Revision: 11765

Modified:
   trunk/apps/Freemail/src/freemail/utils/DateStringFactory.java
Log:
After a lengthy battle with Java's Date classes, I gather it's necessary to set
the TimeZone on the SimpleDateFormat rather than just the Calendar.


Modified: trunk/apps/Freemail/src/freemail/utils/DateStringFactory.java
===================================================================
--- trunk/apps/Freemail/src/freemail/utils/DateStringFactory.java       
2007-02-12 20:45:43 UTC (rev 11764)
+++ trunk/apps/Freemail/src/freemail/utils/DateStringFactory.java       
2007-02-12 22:19:30 UTC (rev 11765)
@@ -32,6 +32,10 @@
        private static final Calendar cal = Calendar.getInstance(gmt);
        private static final SimpleDateFormat sdf = new 
SimpleDateFormat("yyyyMMdd");

+       {
+               sdf.setTimeZone(gmt);
+       }
+
        public static String getKeyString() {
                return getOffsetKeyString(0);
        }


Reply via email to