harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-5461) [classlib][util] wrong daylight savings are reported for "MST" and "EST" timezones after locale data unification
Date Mon, 11 Feb 2008 16:20:09 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Pervov closed HARMONY-5461.
---------------------------------


> [classlib][util] wrong daylight savings are reported for "MST" and "EST" timezones after
locale data unification
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5461
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5461
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Pavel Pervov
>            Assignee: Tony Wu
>            Priority: Minor
>             Fix For: 5.0M5
>
>         Attachments: H5461.patch
>
>
> The following test passes on RI but fails on Harmony:
> ------------------------
> import java.util.TimeZone;
> import java.util.Date;
> class TimeZoneIsDaylight {
>     static Date d = new Date(101, 7, 20);
>     static boolean isDaylight(String s) {
>         return TimeZone.getTimeZone(s).inDaylightTime(d);
>     }
>     static void checkDaylight(String s, boolean yes) {
>         System.out.println(s + ": " + (isDaylight(s) == yes ? "PASSED" : "FAILED"));
>     }
>     public static void main(String[] args) {
>         System.out.println(d);
> 	    checkDaylight("MST", true);
> 	    checkDaylight("EST", true);
>     }
> }
> ------------------------
> The difference is in start month of daylight savings. RI reports it to be March, 8th
for both, we think it is April, 1st.
> I'll attach the patch right now.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message