JDK-4271793 : Date() returns 1 hour later than system time
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.1.8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1999-09-14
  • Updated: 1999-09-15
  • Resolved: 1999-09-15
Related Reports
Duplicate :  
Description

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

Comments
WORK AROUND Name: skT88420 Date: 09/14/99 Change the timezone to TZ=MST7MDT or subtract an hour from the time that is returned from the Date() function. ======================================================================
11-06-2004

EVALUATION This bug is a duplicate of 4256581 which has been fixed for Kestrel. If this fix is required for 1.1.x, CTE escalation is required for a patch. See also 4212004. masayoshi.okutsu@Eng 1999-09-15
15-09-1999