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
7 lines
522 B
Plaintext
7 lines
522 B
Plaintext
# 06-jdbc-time-zone
|
|
# 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)
|
|
# hibernate.jdbc.time_zone=Asia/Kolkata while the JVM default zone is America/New_York
|
|
LocalDateTime in 2026-07-04T09:00 | out 2026-07-04T09:00 | raw 2026-07-04 18:30:00
|
|
Instant in 2026-07-04T03:30:00Z | out 2026-07-04T03:30:00Z | raw 2026-07-03 23:30:00-04
|
|
OffsetDateTime in 2026-07-04T09:00+05:30 | out 2026-07-04T03:30Z | raw 2026-07-03 23:30:00-04
|