-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.6
-
x86
-
windows_nt
Name: gsC80088 Date: 02/04/99
In Japanese NT, build a small Java code:
import java.util.Locale;
import java.util.*;
public class testtime{
public static void main(String args[]) {
Date d1 = new Date();
System.out.println("here date:\t"+d1);
}
}
1)In Japanese NT, set:
Control panel ->"Reginal Setting"->"Japanese"
The above program output:
here date: Wed Oct 28 00:38:37 JST 1998
2)In Japanese NT, set:
Control panel ->"Reginal Setting"->"English(US)"
The above program output:
here date: Tue Oct 28 07:38:37 PST 1998
3) But the desktop time is: 10/28/1998 10:38:37 AM!!!!
It seem like always Java VM take time from mechine
and convert them to default locale timezone and DO
NOT care the really mechine setting! That is mean if
a user design Java code in US and use Japanese NT as
design platform, he/she will always get Japanese
time as default! Even his/her PC is in EST or PST.
I think it is really unfair and big bug.
(Review ID: 41306)
======================================================================
- duplicates
-
JDK-4167800 On Japan NT, time zone always JST
-
- Closed
-