OffsetDateTime value changes after fetching the row from the database

Description

I found this issue while investigating a reported bug for LocalDate on StackOverflow.

Starting from this entity:

when running this logic:

we get this assertion failure:

java.lang.AssertionError: expected:<0001-01-01T00:00Z> but was:<0001-01-01T01:34:52+01:34:52>

Test case will be added after I know the issue number.

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure