JDK-1183352 : class Date doesn't know about PST
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 0.9
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: sparc
  • Submitted: 1994-11-23
  • Updated: 2014-10-28
  • Resolved: 1997-10-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.0 1.0betaFixed
Description
The output from this oak program:

import oak.util.*;

class date extends Date {
    public date() {
	Date now = new Date();
	System.out.println(now.toString());
    }

    public static void main(String args[]) {
	date d = new date();
    }
}

is

Wed Nov 23 09:18:16 1994

unix date command prints

Wed Nov 23 10:18:36 PST 1994



Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.0beta FIXED IN: 1.0beta INTEGRATED IN: 1.0beta
2004-06-14

EVALUATION failed to fill in a field in the struct passed to mktime, one line fix in date.c
2004-06-11

SUGGESTED FIX need to stick -1 in the tm_isdst field when calling mktime
2004-06-11