Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4160708

java.util.SimpleTimeZone specs are incomplete regarding DST use

XMLWordPrintable

    • 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.


      ======================================================================

            aliusunw Alan Liu (Inactive)
            ovlasov Oleksandr Vlasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: