Skip to content

ZonedDateTime: ZoneId vs ZoneOffset behaviour #244

Open
@armandino

Description

@armandino

This issue is related to serializing ZonedDateTime with a ZoneOffset. When the same value is deserialized, we get back ZonedDateTime with a ZoneId instead. As a result, the seralized and deserialized dates are not equal.

Wanted to confirm whether this is a bug. If not, is there a recommended workaround?

Test case: https://github.com/armandino/jackson-modules-java8-bug-report

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions