Duplicate :
|
Name: rm29839 Date: 01/20/98 The timezone is reported incorrectly for the Mountain and Arizona timezones on Windows based computers. This seems to be a problem related to how the virtual machine is reading system paramters from the host system. This has a bunch of ramifications, since I'm not able to tell where I "really" am. I can't get the correct time returned from the system by any means that I can find. This bug occurs on Windows 95 and Windows NT 4.0 (WS and Server), and happens on all hardware platforms I have tested it on. This problem also occurs with all versions of Java that I am aware of. Java Program: public class Application1 { static public void main(String[] args) { String ID = System.getProperty( "user.timezone", "" ); System.out.println( ID ); } } 1) Set the timezone in Windows to Mountain Time (GMT-7). 2) Execute the program. The result is "GMT". 3) Set the timezone in Windows to Arizona. (GMT-7). 4) Execute the program. The result is "MST". 5) Set the timezone in Windows to Central Time (GMT-6). 6) Execute the program. The result is "CST". All other time zones work correctly. (Review ID: 23047) ======================================================================