java-time: java.time on Jackson 3 vs 2, @JsonFormat, time zones, Spring Boot 4.2 spring.jackson.*

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
2026-12-03 23:41:03 +05:30
co-authored by Claude Sonnet 5.5
parent f5ed5d1605
commit 26f64bc184
42 changed files with 1505 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
input: "2026-12-15T10:30:00+05:30"
== Jackson 2.23.0 + JavaTimeModule, defaults
OffsetDateTime : 2026-12-15T05:00Z
ZonedDateTime : 2026-12-15T05:00Z
Instant : 2026-12-15T05:00:00Z
== Jackson 3 defaults (mapper zone UTC)
OffsetDateTime : 2026-12-15T05:00Z
ZonedDateTime : 2026-12-15T05:00Z
Instant : 2026-12-15T05:00:00Z
== Jackson 3, defaultTimeZone(Asia/Kolkata)
OffsetDateTime : 2026-12-15T10:30+05:30
ZonedDateTime : 2026-12-15T10:30+05:30[Asia/Kolkata]
Instant : 2026-12-15T05:00:00Z
== Jackson 3, ADJUST_DATES_TO_CONTEXT_TIME_ZONE disabled
OffsetDateTime : 2026-12-15T10:30+05:30
ZonedDateTime : 2026-12-15T10:30+05:30
Instant : 2026-12-15T05:00:00Z
== A region id survives only if you ask for it
original : 2026-12-15T10:30+05:30[Asia/Kolkata]
written by default : "2026-12-15T10:30:00+05:30"
read back : 2026-12-15T10:30+05:30
WRITE_DATES_WITH_ZONE_ID : "2026-12-15T10:30:00+05:30[Asia/Kolkata]"
read back : 2026-12-15T10:30+05:30[Asia/Kolkata]