-
Notifications
You must be signed in to change notification settings - Fork 82
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
Deserializing Interval discards timezone information #104
Milestone
Comments
The same Happenes with DateTime.... |
As per my notes on PR, this would require updating minimum required Joda version to 2.9. I send a note on |
cowtowncoder
pushed a commit
that referenced
this issue
Oct 5, 2019
Change `IntervalDeserializer` to use `Interval.parseWithOffset` and override timezone only if `shouldAdjustToContextTimeZone` is set or explicit timezone is specified in the format Add unit tests for `IntervalDeserializer` to cover the 3 scenarios: - Timezone explicitly provided in deserialization format - Context timezone enabled - Neither context timezone enabled nor explicit timezone provided Resolve: #104
cowtowncoder
pushed a commit
that referenced
this issue
Oct 5, 2019
Change `IntervalDeserializer` to use `Interval.parseWithOffset` and override timezone only if `shouldAdjustToContextTimeZone` is set or explicit timezone is specified in the format Add unit tests for `IntervalDeserializer` to cover the 3 scenarios: - Timezone explicitly provided in deserialization format - Context timezone enabled - Neither context timezone enabled nor explicit timezone provided Resolve: #104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
play.libs.Json.fromJson(new TextNode("2001-01-01T01:01:01.000+06:00/2001-01-01T01:01:02.000+06:00"), org.joda.time.Interval.class)
2001-01-01T01:01:01.000+06:00/2001-01-01T01:01:02.000+06:00
2000-12-31T19:01:01.000Z/2000-12-31T19:01:02.000Z
The text was updated successfully, but these errors were encountered: