commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-462) FastDateFormat supports parse
Date Mon, 17 Jan 2011 06:22:45 GMT

    [ https://issues.apache.org/jira/browse/LANG-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982493#action_12982493
] 

Henri Yandell commented on LANG-462:
------------------------------------

Note, two separate patches. Apply both (confused me for a bit). UseFormatCache has a slight
clash, but easy to fix. 

Two test failures.

Failed tests: 
  testLocales(org.apache.commons.lang3.time.FastDateParserTest)
  testParseLongShort(org.apache.commons.lang3.time.FastDateParserTest)

----

testLocales(org.apache.commons.lang3.time.FastDateParserTest)  Time elapsed: 0.046 sec  <<<
FAILURE!
java.lang.AssertionError: expected:<Sun Feb 09 21:00:00 PST 2003> but was:<Sun Feb
09 12:00:00 PST 2003>
....
    at org.apache.commons.lang3.time.FastDateParserTest.testLocales(FastDateParserTest.java:349)


and

testParseLongShort(org.apache.commons.lang3.time.FastDateParserTest)  Time elapsed: 0.03 sec
 <<< FAILURE!
java.lang.AssertionError: expected:<Sat Feb 10 12:33:20 PST 2003> but was:<Sat Feb
10 15:33:20 PST 2003>
....
    at org.apache.commons.lang3.time.FastDateParserTest.testParseLongShort(FastDateParserTest.java:294)


Probably timezone pain.

> FastDateFormat supports parse
> -----------------------------
>
>                 Key: LANG-462
>                 URL: https://issues.apache.org/jira/browse/LANG-462
>             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.


Mime
View raw message