JDK-6472644 : (tz) Vista: Default timezone does not work
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 5.0u8
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2006-09-19
  • Updated: 2010-07-29
  • Resolved: 2006-09-20
Related Reports
Duplicate :  
Description
J2SE Version (please include all output from java -version flag):
5.0u8

Does this problem occur on J2SE 1.4.x or 5.0.x ?  Yes / No (pick one)
Yes, it works fine with Mustang Beta 2

Operating System Configuration Information (be specific):
Windows Vista


Hardware Configuration Information (be specific):
x86


Bug Description:
JDK 5.0u8 was not able to set the default TimeZone on Windows Vista RC1. 




Steps to Reproduce (be specific):

Run the simple test case. The correct result should always print
out a local time zone consistent with Windows's current time zone
setting, instead it always get GMT time zone with JDK 1.5
upd 8 and before releases.

public class TestTZ
{

public static void main(String argv[])
{

	System.out.println( "Local TZ = " +
TimeZone.getDefault().getDisplayName());
	System.out.println( "Local Time = " + (new Date()));
}

}

Comments
EVALUATION This is a duplicate of 6440819.
20-09-2006