Date() returns 1 hour later than system time

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.8
    • Component/s: 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)
      ======================================================================

            Assignee:
            Masayoshi Okutsu
            Reporter:
            Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: