Hibernate 7.4.14.Final (plus an 8.0.0.Beta4 preview run), H2 2.5.252, PostgreSQL 17.11 in Docker. Same-JVM and cross-zone round trips, @TimeZoneStorage modes, DST gap/overlap, precision (precision vs secondPrecision), hibernate.jdbc.time_zone, java_time_use_direct_jdbc default flip. Supersedes the date/time experiments of docs/13 (7.4.5); chapter 13 is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
12 lines
1.3 KiB
Plaintext
12 lines
1.3 KiB
Plaintext
# 01-roundtrip (written-in-Asia_Kolkata)
|
|
# Hibernate ORM 7.4.14.Final, JDK 25, database PostgreSQL 17.11, JVM default zone America/New_York, java_time_use_direct_jdbc false (default)
|
|
# written by another JVM whose default zone was Asia/Kolkata; this JVM only reads (see scripts/run-all.sh)
|
|
# written: Instant 2026-06-15T08:30:00Z, LocalDateTime 2026-06-15T14:00, OffsetDateTime 2026-06-15T14:00+05:30 (all the same moment; the LocalDateTime is the Kolkata wall clock)
|
|
Instant out 2026-06-15T08:30:00Z | equals true | same instant true | raw 2026-06-15 04:30:00-04
|
|
LocalDateTime out 2026-06-15T14:00 | equals true | same instant n/a | raw 2026-06-15 14:00:00
|
|
OffsetDateTime default out 2026-06-15T08:30Z | equals false | same instant true | raw 2026-06-15 04:30:00-04
|
|
OffsetDateTime NATIVE out 2026-06-15T08:30Z | equals false | same instant true | raw 2026-06-15 04:30:00-04
|
|
OffsetDateTime NORMALIZE out 2026-06-15T14:00-04:00 | equals false | same instant false | raw 2026-06-15 14:00:00
|
|
OffsetDateTime NORMALIZE_UTC out 2026-06-15T08:30Z | equals false | same instant true | raw 2026-06-15 04:30:00-04
|
|
OffsetDateTime COLUMN out 2026-06-15T14:00+05:30 | equals true | same instant true | raw 2026-06-15 04:30:00-04
|