JDK-6609450 : Time zone names for MET are incorrect in de locale
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-09-26
  • Updated: 2010-07-29
  • Resolved: 2007-10-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4-poolResolved
Related Reports
Duplicate :  
Description
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 ----------

Comments
EVALUATION This bug appears in the 1.4.x only, I've reproduced with 1.4.2_16. Assigning to sustaining eng.
16-10-2007

EVALUATION Maybe abhijit should take ownership of this bug, but anyway assign to Jiri first, and let him to decide.
15-10-2007

EVALUATION Looks like the problem was fixed in 1.5. But 1.4.2_15 still shows Iranische Normalzeit.
15-10-2007