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] Created: (HARMONY-5461) [classlib][util] wrong daylight savings are reported for "MST" and "EST" timezones
Date Tue, 05 Feb 2008 17:40:07 GMT
[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

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) {
	    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.

View raw message