Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjEyMjg4YjRi...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16287?atlOrigin=eyJpIjoiZjEyMj...
) HHH-16287 (
https://hibernate.atlassian.net/browse/HHH-16287?atlOrigin=eyJpIjoiZjEyMj...
) Consider hibernate.timezone.default_storage for OffsetTime typing and storage (
https://hibernate.atlassian.net/browse/HHH-16287?atlOrigin=eyJpIjoiZjEyMj...
)
Issue Type: Bug Assignee: Unassigned Components: hibernate-core Created: 13/Mar/2023 09:43
AM Priority: Major Reporter: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
As documented (and implemented), hibernate.timezone.default_storage affects ZonedDateTime
and OffsetDateTime , but not OffsetTime.
As a result, if you set hibernate.timezone.default_storage=NORMALIZE_UTC or
hibernate.timezone.default_storage=COLUMN or hibernate.timezone.default_storage=NATIVE ,
it won’t affect OffsetTime storage, which will still be mapped to a column of type TIME
(not TIME WITH TIMEZONE ), and will still be normalized to hibernate.jdbc.time_zone or the
JVM timezone (not UTC).
That’s at least surprising, and I think getting OffsetTime in line with ZonedDateTime and
OffsetDateTime would improve the situation.
(
https://hibernate.atlassian.net/browse/HHH-16287#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16287#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:2199b34 )