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

SimpleTimeZone.getOffset returns invalid value

XMLWordPrintable

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



      Name: auR10023 Date: 12/24/2002



      The java.util.SimpleTimeZone.getOffset works wrong when its time zone end rule
      is at the beginning of a year and getOffset parameters represent a day which is just after the end rule date.

      This problem is described more clearly in 4278609.

      Following JCK tests fails due to this bug (with jdk build 1.4.2-beta-b10):

      api/java_util/SimpleTimeZone/index.html#setXXXRule[SimpleTimeZone1091]
      api/java_util/SimpleTimeZone/index.html#setXXXRule[SimpleTimeZone2006]

      Please do not close this bug as duplicate of 4278609 because it was fixed incompletely.

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

            okutsu Masayoshi Okutsu
            avusunw Avu Avu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: