W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2002

org.w3.util.DateParser getIsoDate bug?

From: Eitan Suez <eitan@uptodata.com>
Date: Tue, 30 Jul 2002 17:52:49 -0500
Message-ID: <001601c2381b$d493be80$9865fea9@loop1eitan>
To: <www-jigsaw@w3.org>

hi,

  does org.w3.util.DateParser's getIsoDate(Date) appears to
  have a bug.  the timezone does not appear to be added
  properly:

    buffer.append("Z");

  whereas it should append the actual time zone off set in
  the format +/-hh:mm

  the test output confirms this:

>> 1997-07-16T19:20:30.45-02:00
>> Wed Jul 16 12:20:30 CDT 1997 [869073630450]
>> 1997-07-16T17:20:30.45Z <<<<<<<<<<<<<<<<<<

thanks, eitan
Received on Tuesday, 30 July 2002 18:50:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:36 GMT