Regression of Instant serialization

Description

When an entity with an Instant field is persisted and then retrieved, the instants before saving and after retrieving are different when the original Instant was a DST end.

It was probably introduced by this commit which is associated to this ticket.

Here's a demo repository.
When executed, it will produce the following logs which shows the difference between the instants:

It happens since version 5.4.2.
Uncomment line 19 in the pom.xml of the demo in order to test with version 5.4.1 which will produce the following logs:

Environment

None

Assignee

Yoann Rodière

Reporter

Romain Moreau

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Worked in

5.4.1

Components

Affects versions

Priority

Major
Configure