2 Comments
User's avatar
Petr H.'s avatar

Hi Marcus, is there a good reason, why you prefer OffsetDateTime over Instant?

Thank you for a nice article!

Expand full comment
Markus Eisele's avatar

Because OffsetDateTime preserves context.

Capture both the moment in time and

The user’s original timezone offset.

And with setting the Hibernate property correctly, it's stored as UTC.

Thanks for your kind words!

Expand full comment