You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Pervov (JIRA)" <ji...@apache.org> on 2008/02/05 18:42:10 UTC
[jira] Updated: (HARMONY-5461) [classlib][util] wrong daylight
savings are reported for "MST" and "EST" timezones
[ https://issues.apache.org/jira/browse/HARMONY-5461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Pervov updated HARMONY-5461:
----------------------------------
Attachment: H5461.patch
Here is the patch to remove the difference with RI.
> [classlib][util] wrong daylight savings are reported for "MST" and "EST" timezones
> ----------------------------------------------------------------------------------
>
> Key: HARMONY-5461
> URL: https://issues.apache.org/jira/browse/HARMONY-5461
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: All
> Reporter: Pavel Pervov
> Priority: Minor
> 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.