JDK-6669430 : (tz) TimeZone Venezuela Ve Date
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 5.0u9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-02-29
  • Updated: 2010-07-29
  • Resolved: 2008-02-29
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java -1.5.0_09-b03

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Professional
Ver 2002
Service Pack 2

EXTRA RELEVANT SYSTEM CONFIGURATION :
TimeZone Venezuela "GMT-4:30" With a windows path.

A DESCRIPTION OF THE PROBLEM :
When I get a new Date with: Date date = new Date(); JVM get a wrong date, the TimeZone of the OS is ok, is "GMT-4:30" Caracas. However if I get the Date by this way: TimeZone tz = TimeZone.getTimeZone("GMT-4:30");
	 Calendar c = Calendar.getInstance(tz);
 the Date is OK.
The problem is, the JVM is not getting the correct TimeZone of the OS.

To reproduce:
- Install KB942763 (http://support.microsoft.com/kb/942763)
- Run the following snippet:

Date date = new Date();
System.out.println(date);

Expected: Tue Feb 26 21:38:31 VET 2008
Actual: Wed Feb 27 01:08:31 GMT 2008


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION This is a duplicate of 6650748.
29-02-2008