This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
java.util/331: java.util.Data.toString() doesn't seem to behave properly.
- To: java-gnats at sourceware dot cygnus dot com
- Subject: java.util/331: java.util.Data.toString() doesn't seem to behave properly.
- From: apbianco at cygnus dot com
- Date: 24 Aug 2000 23:47:48 -0000
- Cc: pascal dot forget at videotron dot ca
- Reply-To: apbianco at cygnus dot com
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com, pascal dot forget at videotron dot ca
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, apbianco@cygnus.com
>Number: 331
>Category: java.util
>Synopsis: java.util.Data.toString() doesn't seem to behave properly.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: warrenl
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 24 16:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Alexandre Petit-Bianco
>Release: latest and greatest from CVS.
>Organization:
>Environment:
RHL 6.2 x86
>Description:
The following program:
public class dateTest {
public static void main (String [] args) {
System.out.println(new java.util.Date (100,8,23).toString ());
}
}
outputs:
Sat Sep 23 01:00:00 GMT 2000
where I think it should output
Sat Sep 23 00:00:00 PDT 2000
(I'm not sure about the PDT/GMT, but 01:00:00 seems wrong
since with the constructor I'm using; hours, minutes and
second are set to zero.)
>How-To-Repeat:
Build and run the test case.
>Fix:
I looked at the java.util.Date but didn't see anything
too obvious.
>Release-Note:
>Audit-Trail:
>Unformatted: