commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Commented: (LANG-462) FastDateFormat supports parse
Date Sun, 23 Jan 2011 06:39:45 GMT


Henri Yandell commented on LANG-462:

One failed test (line :294) is due to a missing 'Z' in the format text. You have to keep the
timezone there if you expect to go from date to string and back again. Easy fix.

The other seems to be due to weakness in SimpleDateFormat(line :349)(?). For pattern "G/y/M/d/a/E",
I get output of "??/03/2/9/??/?". That is, 'G', 'a' and 'E' all seeming to fail when called
on the JDK's SimpleDateFormat. Seems odd - might be an OS X thing. 

For pattern "GGGG/yyyy/MMMM/dddd/aaaa/EEEE", I get "??/2003/2?/0009/??/???".

> FastDateFormat supports parse
> -----------------------------
>                 Key: LANG-462
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.time.*
>            Reporter: Franz Wong
>             Fix For: 3.0
>         Attachments: lang462.patch, UseFormatCache.patch
> Currently FastDateFormat only supports formatting the ISO8601 time zone, however, it
doesn't support parsing such string to Date.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message