JDK-6956465 : Post KB981793 time zone updates by Microsoft, java.util.Date inconsistent
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-05-27
  • Updated: 2012-03-20
  • Resolved: 2010-07-20
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows XP SP3/ Win 2003 Server/Win 2008 Server

A DESCRIPTION OF THE PROBLEM :
java.util.Date does not behave consistently cross platform for same time zones. After latest time zone patch (KB981793) released by Microsoft, windows is having separate time zones for Irkutsk and UlaanBataar. But results with respect to actual system time are not correct.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set system time zone to Irkutsk (GMT +8)  with/without DST also set it UlaanBataar timezone


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
  Program output should match with actual system time
ACTUAL -
  Program output does not match with actual system time

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
// start
  import java.util.*;
  
  public class Test
  {
  	public static void main(String args[])
  	{
                                     Date date = new java.util.Date();
                                    System.out.println("Current Date Time : " + date);
  	}
  };
  //end

---------- END SOURCE ----------