harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r593024 - /harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
Date Thu, 08 Nov 2007 05:51:39 GMT
Author: tonywu
Date: Wed Nov  7 21:51:37 2007
New Revision: 593024

URL: http://svn.apache.org/viewvc?rev=593024&view=rev
Log:
Fix a bug that SimpleDateFormat.parse does not reload the latest timezone

Modified:
    harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java

Modified: harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java?rev=593024&r1=593023&r2=593024&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
Wed Nov  7 21:51:37 2007
@@ -403,6 +403,8 @@
      */
     @Override
     public Date parse(String string, ParsePosition position) {
+        icuFormat.setTimeZone(com.ibm.icu.util.TimeZone.getTimeZone(calendar
+                .getTimeZone().getID()));
         return icuFormat.parse(string,position);
     }
 



Mime
View raw message