commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11691] java.util.Date toString() output should be loc


From: Andrew John Hughes
Subject: [commit-cp] [bugs #11691] java.util.Date toString() output should be localized
Date: Sat, 22 Jan 2005 03:34:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Epiphany/1.0.8

This is an automated notification sent by Savannah.
It relates to:
                bugs #11691, project classpath

==============================================================================
 OVERVIEW of bugs #11691:
==============================================================================

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11691>

                 Summary: java.util.Date toString() output should be
localized
                 Project: classpath
            Submitted by: gnu_andrew
            Submitted on: Sat 01/22/2005 at 03:34
                Category: None
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________


After looking at a recent gcj bug, it appears the toString() output for GNU
Classpath's java.util.Date is missing the timezone information.



For example, the date/time 'Wed Jun 04 03:09:35  2003' is output as just that
under Classpath, while under Sun's VM, it is adapted to the local timezone,
including DST ('Wed Jun 04 04:09:35 BST 2003').  The gcj bug was still wrong
in using this output (as it differs depending on where the code is run), but
maybe we should be including this information as 'zzz' is a required part of
toString().



The time should remain being stored in GMT (getTime() comparisons succeed),
but on a toString() call, the GMT value should be localized to the timezone
of the default locale. 



I attach the file from the gcj bug.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 01/22/2005 at 03:34  Name: TestParse.java  Size: 736B   By:
gnu_andrew

<http://savannah.gnu.org/bugs/download.php?item_id=11691&item_file_id=2096>

==============================================================================

This item URL is:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11691>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]