[forms] bug - dates for publications and datasets
🐛 Bug Report
When creating a new publication or dataset, fields date created
and date last updated
can be filled in.
When they are filled in, the submission of the item fails. If they are empty the submission of the item is possible.
🤔 Expected Behavior
The submission of the item should be possible, when these fields are completed.
😯 Current Behavior
@klaus.illmayer checked the logs yesterday when I was trying to create a new dataset, and here is the report:
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type
java.time.ZonedDateTimefrom String "2021-05-10": Failed to deserialize java.time.ZonedDateTime: (java.time.format.DateTimeParseException) Text '2021-05-10' could not be parsed at index 10; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type
java.time.ZonedDateTime from String "2021-05-10": Failed to deserialize java.time.ZonedDateTime: (java.time.format.DateTimeParseException) Text '2021-05-10' could not be parsed at index 10