-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
6u10
-
x86
-
windows_xp
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 ----------
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 ----------
- duplicates
-
JDK-6929185 (tz) Windows-only: tzmappings needs update for KB979306
-
- Resolved
-