JDK-4105207 : Mountain Time Zone Not Found
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1998-01-20
  • Updated: 1998-03-02
  • Resolved: 1998-03-02
Related Reports
Duplicate :  
Description

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)
======================================================================