JDK Version: 1.2beta4-G
OS: Soalris 2.6
Locale: zh
In 1.2beta4-G build, the Time Zone id name for PRC is wrong, but the
date time value is right. Current id name for PRC is :"Asia/Irkutsk",
it is a city of Russia.
==========================CheckTimeZone.java=================================
import java.util.*;
import java.text.*;
public class CheckTimeZone {
public static void main(String args[]) {
System.out.println("Time Zone is : " + TimeZone.getDefault().getID());
}
}
==============================================================================
java CheckTimeZone
Time Zone is: Asia/Irkutsk
I think it is not correct. Current TimeZone ids
in JDK1.2beta4-G include Asis/Shanghai, may be
it is the right name for PRC, but it is better
if there exists a id name as "Asia/Beijing" for
PRC.
jim.hu@prc 1998-05-22
This bug hasn't been fixed in 1.2 beta4-K. The following is the result of CheckTimeZone.
% env TZ=PRC /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Irkutsk
Note that zh locale is not installed on the machine.
For other timezones, it returns a wrong value.
% env TZ=ROK /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Yakutsk
% env TZ=ROC /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Irkutsk
% env TZ=Hongkong /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Irkutsk
Also, formatted date/time information is wrong for all of the timezones above, which should be filed as a separate bug report.
masayoshi.okutsu@Eng 1998-07-07
Hi Alan,
In latest several JDK builds, the TimeZone id name for PRC is Asia/Shanghai, it
looks better than before now, but I got little knowledge in this area, like
TimeZone and daylight, etc. One thing I want to be confirmed here is, before
JDK's birth, the international standard TimeZone name for PRC is Asia/Shanghai
or Asia/Irkutsk? not Asia/Beijing? Anyway, thanks for your work.
[jim.hu@prc 1998-07-24]
OS: Soalris 2.6
Locale: zh
In 1.2beta4-G build, the Time Zone id name for PRC is wrong, but the
date time value is right. Current id name for PRC is :"Asia/Irkutsk",
it is a city of Russia.
==========================CheckTimeZone.java=================================
import java.util.*;
import java.text.*;
public class CheckTimeZone {
public static void main(String args[]) {
System.out.println("Time Zone is : " + TimeZone.getDefault().getID());
}
}
==============================================================================
java CheckTimeZone
Time Zone is: Asia/Irkutsk
I think it is not correct. Current TimeZone ids
in JDK1.2beta4-G include Asis/Shanghai, may be
it is the right name for PRC, but it is better
if there exists a id name as "Asia/Beijing" for
PRC.
jim.hu@prc 1998-05-22
This bug hasn't been fixed in 1.2 beta4-K. The following is the result of CheckTimeZone.
% env TZ=PRC /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Irkutsk
Note that zh locale is not installed on the machine.
For other timezones, it returns a wrong value.
% env TZ=ROK /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Yakutsk
% env TZ=ROC /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Irkutsk
% env TZ=Hongkong /usr/local/java/jdk1.2/solaris/bin/java CheckTimeZone
Time Zone is : Asia/Irkutsk
Also, formatted date/time information is wrong for all of the timezones above, which should be filed as a separate bug report.
masayoshi.okutsu@Eng 1998-07-07
Hi Alan,
In latest several JDK builds, the TimeZone id name for PRC is Asia/Shanghai, it
looks better than before now, but I got little knowledge in this area, like
TimeZone and daylight, etc. One thing I want to be confirmed here is, before
JDK's birth, the international standard TimeZone name for PRC is Asia/Shanghai
or Asia/Irkutsk? not Asia/Beijing? Anyway, thanks for your work.
[jim.hu@prc 1998-07-24]
- duplicates
-
JDK-4163329 Incorrect TimeZone in Korean OS.
-
- Closed
-
- relates to
-
JDK-4150039 The Time Zone id name for Japan is wrong.
-
- Resolved
-
-
JDK-4388302 Test of the correct handling of the Solaris host time zone
-
- Closed
-