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

Western European timezones have incorrect DST info

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.2
    • core-libs



      Name: vi73552 Date: 06/23/99


      The SimpleTimeZone instances created by java.util.TimeZone.
      Most western european timezones go into DST at 1am UTC, and
      return to standard time at 1am UTC. This differs from American-style
      Daylight savings which changes from 2am to 3am LOCAL time going in
      to DST, then from 2am to 1am LOCAL time when returning to standard
      time.

      One example of the bug is Europe/Berlin:
      new SimpleTimeZone(1*ONE_HOUR, "Europe/Berlin" /*CE%sT*/,
          Calendar.MARCH, -1, Calendar.SUNDAY /*DOW_IN_DOM*/, 2*ONE_HOUR,
          Calendar.OCTOBER, -1, Calendar.SUNDAY /*DOW_IN_DOM*/, 2*ONE_HOUR, 1*ONE_HOUR),

      The dates are correct, but the 2*ONE_HOUR on the second line should be
      3*ONE_HOUR.

      I have not done enough research to say how many of the zones are
      wrong -- some research needs to be done.
      (Review ID: 84735)
      ======================================================================

            okutsu Masayoshi Okutsu
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: