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

(tz) TimeZone Venezuela Ve Date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0u9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              okutsu Masayoshi Okutsu
              Reporter:
              ryeung Roger Yeung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: