You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2008/02/09 15:07:07 UTC
[jira] Commented: (HARMONY-5461) [classlib][util] wrong daylight
savings are reported for "MST" and "EST" timezones after locale data
unification
[ https://issues.apache.org/jira/browse/HARMONY-5461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567320#action_12567320 ]
Tony Wu commented on HARMONY-5461:
----------------------------------
Hi, Pavel
This testcase fails on RI too for me...I'm confused since it does not looked like it is related to default locale/timezone.
I tried on RI5 and RI6, both of them print,
Mon Aug 20 00:00:00 CST 2001
MST: FAILED
EST: FAILED
> [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.