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:
@@ -0,0 +1,14 @@
|
||||
== defaultDateFormat(SimpleDateFormat)
|
||||
{"day":"2026-12-15","at":"2026-12-15T10:30:00","legacy":"15/12/2026 05:00"}
|
||||
read back: 2026-12-15T10:30
|
||||
|
||||
== withConfigOverride per type
|
||||
{"day":"15/12/2026","at":"15/12/2026 10:30","legacy":"2026-12-15T05:00:00.000Z"}
|
||||
read back: 2026-12-15T10:30
|
||||
|
||||
== SimpleModule with a DateTimeFormatter
|
||||
{"day":"2026-12-15","at":"15.12.2026 10.30","legacy":"2026-12-15T05:00:00.000Z"}
|
||||
read back: 2026-12-15T10:30
|
||||
|
||||
== an annotation beats the global override
|
||||
{"day":"20261215","at":"15/12/2026 10:30","legacy":"2026-12-15T05:00:00.000Z"}
|
||||
Reference in New Issue
Block a user