-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0
-
sparc
-
solaris_2.5
Name: avC70361 Date: 07/27/98
The java.util.SimpleTimeZone specs should document the exact conditions
when a time zone uses DST and when not. There is a problem with the
example of a time zone with the zero DSTSavings and defined daylight rules.
In this case the current implementation behaves inconsistently.
The inDaylightTime(Date) method always returns false, therefore
assuming that such a timezone does not use DST. On the other hand,
the useDaylightTime() method returns true, i.e. this timezone uses DST.
There is a bug 4154651 filed against inDaylightTime. As seen from its
evaluation, inDaylightTime is correct, thus the time zone with the
zero DSTSavings and defined daylight rules should be treated as not
using DST. This fact should be clearly mentioned in the specs.
======================================================================
- duplicates
-
JDK-4154525 SimpleTimeZone 11 args constructor and setDSTSavings works wrong
-
- Closed
-