harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-493) daylight savings parsing problem
Date Fri, 11 Aug 2006 06:21:14 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-493?page=all ]

Mark Hindess resolved HARMONY-493.
----------------------------------

    Resolution: Fixed

Alexey/Oleg: Thanks for tracking this down.

Oleg: I've applied the patches in r430691.  Please check that I've applied it correctly.

I'm going to re-run the Jakarta Commons Lang tests that caused me to raise this bug.



> daylight savings parsing problem
> --------------------------------
>
>                 Key: HARMONY-493
>                 URL: http://issues.apache.org/jira/browse/HARMONY-493
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mark Hindess
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: harmony-493-test.patch, harmony-493.patch
>
>
> The following test code gives different results on Harmony than on RI.  Harmony outputs:
> d = 1143334200000
> and RI outputs:
> d = 1143337800000
> import java.text.DateFormat;
> import java.text.SimpleDateFormat;
> import java.util.TimeZone;
> import java.util.Date;
> import java.util.Locale;
> public class Test {
>     public static void main(String[] args) {
>         DateFormat df = new SimpleDateFormat("MMM dd, yyyy H:mm:ss.SSS",
>                                              Locale.ENGLISH);
>         TimeZone zone = TimeZone.getTimeZone("Europe/London");
>         df.setTimeZone(zone);
>         Date d = null;
>         try {
>             d = df.parse("March 26, 2006 01:50:00.000");
>         } catch (Exception e) {
>             e.printStackTrace();
>         }
>         System.err.println("d = " + d.getTime());
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message