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

Wrong rawoffset value for timezone "Europe/Zurich"

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      TimeZone.getTimeZone("Europe/Zurich").getRawOffset()
      is returning 3600000 and hence results in GMT +1.

      The actual value should be 7200000.


      Same is the case for many Europe timezones.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run : TimeZone.getTimeZone("Europe/Zurich").getRawOffset()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      7200000
      ACTUAL -
      3600000

      ---------- BEGIN SOURCE ----------
      TimeZone.getTimeZone("Europe/Zurich").getRawOffset()
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            psonal Pallavi Sonal (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: