-
Bug
-
Resolution: Fixed
-
P4
-
1.1.6, 1.1.7, 1.1.8
-
1.1.8
-
x86, sparc
-
solaris_2.6, windows_nt
-
Verified
Name: mf23781 Date: 08/20/98
*Symptoms:
On a Windows NT 4.0 System that is running in Japanese, the Date.toString()
function always returns a date with JST as the time zone.
Since it thinks the time zone is JST, the date and time are
different from the system date and time if the system time zone
is not JST. (e.g. when the System time zone is
set to EDT, the Date.toString() outputs a time that is 13 hours
ahead of the system time because of the difference in time zones.)
The following code demonstrates this bug if it is run on a Japanese NT 4.0
System:
import java.util.*;
public class SystemTimeZoneTest {
public static void main( String[] args ) {
System.out.println( "The date for this system is " + (new
Date()).toString() );
}
}
*Behaviour differences:
This bug does not show up in either Internet Explorer 4.01 or
Netscape 4.06.
======================================================================
*Symptoms:
On a Windows NT 4.0 System that is running in Japanese, the Date.toString()
function always returns a date with JST as the time zone.
Since it thinks the time zone is JST, the date and time are
different from the system date and time if the system time zone
is not JST. (e.g. when the System time zone is
set to EDT, the Date.toString() outputs a time that is 13 hours
ahead of the system time because of the difference in time zones.)
The following code demonstrates this bug if it is run on a Japanese NT 4.0
System:
import java.util.*;
public class SystemTimeZoneTest {
public static void main( String[] args ) {
System.out.println( "The date for this system is " + (new
Date()).toString() );
}
}
*Behaviour differences:
This bug does not show up in either Internet Explorer 4.01 or
Netscape 4.06.
======================================================================
- duplicates
-
JDK-4196798 Default TimeZone setting for PRC is wrong.
-
- Closed
-
-
JDK-4178758 TimeZone.getDefault().getID() doen't depend on the timezone setting on WinNT4.0J
-
- Closed
-
-
JDK-4209067 Regional settings in NT incorrectly affected date and time
-
- Closed
-