Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6956465

Post KB981793 time zone updates by Microsoft, java.util.Date inconsistent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 6u10
    • core-libs

      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 ----------

            okutsu Masayoshi Okutsu
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: