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

Time zone names for MET are incorrect in de locale

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.4.2_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      A call to
      TimeZone.getTimeZone("MET").getDisplayName()
      for my default locale (presumably "DE" for Germany) returns "Iranische Normalzeit" (Iranian normal time).

      "MET" is commonly used for "Middle European Time".
      The time zone offset of the MET time zone is 1 hour (GMT +1), which matches the Middle European Time Zone's one.
      This was read by
      TimeZone.getTimeZone("MET").getRawOffset()/3600000
      Iran has a time zone offset of GMT +3:30

      Therefore I assume the Display name is wrong.

      Regards





      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      System.out.println(TimeZone.getTimeZone("MET").getDisplayName() + "\t" + (TimeZone.getTimeZone("MET").getRawOffset()/3600000));


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the above should yield something like
      Mitteleuropäische Zeit
      (=Middle European Time)
      ACTUAL -
      gives (for locale DE)
      Iranische Normalzeit 1

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      System.out.println(TimeZone.getTimeZone("MET").getDisplayName() + "\t" + (TimeZone.getTimeZone("MET").getRawOffset()/3600000));

      ---------- END SOURCE ----------

            coffeys Sean Coffey
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: