United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-1183352 class Date doesn't know about PST
JDK-1183352 : class Date doesn't know about PST

Details
Type:
Bug
Submit Date:
1994-11-23
Status:
Closed
Updated Date:
1997-10-22
Project Name:
JDK
Resolved Date:
1997-10-22
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
sparc
Priority:
P5
Resolution:
Fixed
Affected Versions:
0.9
Fixed Versions:
1.0

Related Reports

Sub Tasks

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
SUGGESTED FIX

need to stick -1 in the tm_isdst field when calling mktime

                                     
2004-06-11
EVALUATION

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

BugTraq+ Release Management Values

COMMIT TO FIX:
1.0beta

FIXED IN:
1.0beta

INTEGRATED IN:
1.0beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together