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

ISO 8601 dates: do not require time zone for date-only values #816

Closed
newyankeecodeshop opened this issue Jun 4, 2015 · 0 comments
Closed
Milestone

Comments

@newyankeecodeshop
Copy link

The new ISO parsing logic from issue #552 includes support for date-only forms of the string, but it requires those strings to have a time zone. The RFC for internet timestamps (http://www.ietf.org/rfc/rfc3339.txt) indicates that time zone designators should only be present when there is a time component. (See section 5.6)

ISO8601Utils.parse() should be modified to accept a date-only string (YYYY-MM-DD) with no time zone and return the value as a date corresponding to midnight on that day in the local (default) time zone.

newyankeecodeshop pushed a commit to wingspan/jackson-databind that referenced this issue Jun 4, 2015
cowtowncoder added a commit that referenced this issue Jun 5, 2015
Allow date-only ISO strings to have no time zone. #816
@cowtowncoder cowtowncoder added this to the 2.5.4 milestone Jun 5, 2015
cowtowncoder added a commit that referenced this issue Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants