Why timestamp with timezone mapped to OffsetDatetime instead of Instant or ZonedDateTime #1107
-
I was confused by this SO QUESTION
I want to use the UTC time to store and transfer all timestamps, but show local time to users according their timezone. so In database I choose timestamp without timezone, and I want to it mapped to java.time.instant. to achieve this, is this enough?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It should work. MyBatis has a built in type handler for java.time.Instant. |
Beta Was this translation helpful? Give feedback.
It should work. MyBatis has a built in type handler for java.time.Instant.