You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that this example timestamp will always be deserialized to 2025-01-21, although in time zones with a positive offset (e.g. Central European Time = +01:00), this is unexpected and a source of errors for users.
My use case is also a JavaScript client communicating with a Java backend (as motivated in one of the comments in the code) and I appreciate the idea. But I think the conversion should be time-zone aware. Strings ending with Z could e.g. be parsed as Instants which could then be transformed to a LocalDate according to the JVM's default TimeZone or the TimeZone that has been set on the ObjectMapper.