-
Notifications
You must be signed in to change notification settings - Fork 117
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
Deserialization of ZonedDateTime
may lose zone information
#118
Comments
Did you try disabling |
I think that this might be good issue for new contributors to investigate. |
ZonedDateTime
may lose zone information
@hohwille Did disabling the |
Found the documentation: https://github.com/FasterXML/jackson-databind/wiki/Deserialization-Features |
With the update to the README, I think this can be closed. There are also a bunch of tests that exercise the functionality (@see |
Sorry for the late response but I can confirm that your suggestion fixed the issue. Thanks for the hint and great that you also updated to docs 👍 |
On Deserialization of ZonedDateTime the ZoneId is added as offset and lost resulting in "1999-12-31T23:59:59+02:00" being deserialized as "1999-12-31T21:59:59Z[UTC]".
I traced it down to the root which is here:
https://github.com/FasterXML/jackson-modules-java8/blob/master/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/deser/InstantDeserializer.java#L209
IMHO one would need to use
ZonedDateTime.parse(CharSequence)
to properly deserializeZonedDateTime
.See also devonfw/devon4j#116
The text was updated successfully, but these errors were encountered: