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

Date() returns 1 hour later than system time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.8
    • core-libs



      Name: skT88420 Date: 09/14/99


      import java.util.*;
      class WhatIstoday
      {
      public static void main(String arg[])
      {
      Date today = new Date();
      System.out.println(today.toLocaleString());
      }
      }


      Returns the date exactly 1 hour later than the current system
      time. The system TZ=US/Arizona which returns MST. Changing
      the TZ=MST7MDT seems corrects the problem. Since Arizona does
      not change times for daylight savings, this appears to be
      problem.

      java -version = 1.1.8
      java -fullversion = JDK1.1.8M
      (Review ID: 95263)
      ======================================================================

            okutsu Masayoshi Okutsu
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: