Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve parsing of ISO 8601 dateTime #5

Open
GoogleCodeExporter opened this issue Jul 31, 2015 · 2 comments
Open

Improve parsing of ISO 8601 dateTime #5

GoogleCodeExporter opened this issue Jul 31, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

DateParser doesn't handle all allowable ISO 8601 dateTime formats.

E.g. a parse exception is thrown when attempting to parse a valid ISO8601
dateTime such as '2009-11-23T13:29:24.604-05:00'.

See attached patch (against trunk).  It preserves the behavior of
DateParser (attempting to use the existing SimpleDateFormats), but then
goes on to use the ISODateTimeFormat from Joda Time.  (Patch adds a Joda
Time dependency and includes test).


Original issue reported on code.google.com by emets...@gmail.com on 3 Dec 2009 at 9:42

Attachments:

@GoogleCodeExporter
Copy link
Author

Oh, this patch also adds source jar and javadoc jar generation in the pom... 
sorry
about polluting the patch.  But maybe you could keep that as it's helpful.

Original comment by emets...@gmail.com on 3 Dec 2009 at 9:49

@GoogleCodeExporter
Copy link
Author

Original comment by azarot...@gmail.com on 15 Dec 2009 at 3:49

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant