JDK-4064437 : Default TimeZone not set correctly on NT
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.1.3
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-07-14
  • Updated: 1998-03-02
  • Resolved: 1998-03-02
Related Reports
Duplicate :  
Description

Name: rlT66838			Date: 07/14/97


I have witten a time class for Java. When I run it on NT it always thinks it is GMT.

Example program:

import java.util.*;
 
public class Foo {
   public static void main(String [] args) {
      TimeZone tz = TimeZone.getDefault();
      System.out.println(tz.getID());
   }
}

Output on UNIX:
MST

Output on NT:
GMT


======================================================================

Comments
WORK AROUND Name: rlT66838 Date: 07/14/97 A program must first call setDefault() to set the time zone correctly. ======================================================================
11-06-2004