We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems as if with #112 I found a bug in jacksons JavaTimeModule: When a ZonedDateTime is deserialized, then Jackson uses InstantDeserializer when JavaTimeModule is in place. This is indeed producing a ZonedDateTime but the ZoneId is then added as offset and lost resulting in being "1999-12-31T23:59:59+02:00" 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
Actually one would need to use ZonedDateTime.parse(CharSequence) to properly deserialize ZonedDateTime.
ZonedDateTime.parse(CharSequence)
ZonedDateTime
The text was updated successfully, but these errors were encountered:
This test is failing so @Ignore was added:
@Ignore
devon4j/modules/json/src/test/java/com/devonfw/module/json/common/base/type/PageableJsonTest.java
Line 157 in c9a31f5
Sorry, something went wrong.
We need to configure DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE.
DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE
Fix needs to go here: https://github.com/devonfw/devon4j/blob/develop/modules/json/src/main/java/com/devonfw/module/json/common/base/ObjectMapperFactory.java#L154
#116: disable ADJUST_DATES_TO_CONTEXT_TIME_ZONE (#185)
2dcbb7f
Fixed with PR #185 thanks to @vapadwal
No branches or pull requests
It seems as if with #112 I found a bug in jacksons JavaTimeModule:
When a ZonedDateTime is deserialized, then Jackson uses InstantDeserializer when JavaTimeModule is in place. This is indeed producing a ZonedDateTime but the ZoneId is then added as offset and lost resulting in being "1999-12-31T23:59:59+02:00" 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
Actually one would need to use
ZonedDateTime.parse(CharSequence)
to properly deserializeZonedDateTime
.The text was updated successfully, but these errors were encountered: