java.util/331: java.util.Data.toString() doesn't seem to behave properly.

apbianco@cygnus.com apbianco@cygnus.com
Thu Aug 24 16:50:00 GMT 2000


>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:


More information about the Java-prs mailing list