-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Milestone
Description
(moved from https://github.com/FasterXML/jackson-datatype-jsr310/issues/97
reported by @twilson-palantir )
Version 2.8.10
public static void main(String[] args) throws Exception {
ObjectMapper mapper = new ObjectMapper().registerModule(new JavaTimeModule());
ZonedDateTime original = ZonedDateTime.parse("1959-04-13T05:05:38.599Z");
String serialized = mapper.writeValueAsString(original);
ZonedDateTime deserialized = mapper.readValue(serialized, ZonedDateTime.class);
System.out.println(original);
System.out.println(serialized);
System.out.println(deserialized);
}
outputs
1959-04-13T05:05:38.599Z
-338324062.599000000
1959-04-13T05:05:37.401Z[UTC]
I haven't checked other types for issues, but I wouldn't be surprised if they were similarly broken.
usmanovbf
Metadata
Metadata
Assignees
Labels
No labels