eclipse-ee4j / yasson

Eclipse Yasson project
https://projects.eclipse.org/projects/ee4j.yasson
Other
204 stars 96 forks source link

Support for ISO_DATE to Date deserialization #648

Open OndroMih opened 3 months ago

OndroMih commented 3 months ago

Fixes #487.

Deserializes plain ISO_DATE, e.g. "2024-08-21" to java.util.Date in the default system timezone. The reason is that the date is meant to be a date and not exact time. So the final Date instance has the same date in the local timezone as the date on the input.

Dealing with timezones is a bit confusing to me. If somebody thinks it's better to convert the date using UTC, let me know. However, I think the default timezone is a reasonable default.