-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
None
-
None
-
4.4 RC2
The date field is of type "date"
When trying to edit the date field, I have the following error:
Caused by: org.ametys.runtime.model.exception.BadItemTypeException: Unable to cast '2021-02-15T23:00:00.000Z' to a date at org.ametys.core.model.type.AbstractDateElementType.convertValue(AbstractDateElementType.java:56) at org.ametys.core.model.type.AbstractDateElementType.fromJSONForClient(AbstractDateElementType.java:82) at org.ametys.cms.workflow.EditContentFunction.lambda$6(EditContentFunction.java:602) at org.ametys.plugins.repository.model.ViewHelper.visitView(ViewHelper.java:54) at org.ametys.cms.workflow.EditContentFunction._parseValues(EditContentFunction.java:571) at org.ametys.cms.workflow.EditContentFunction.getValues(EditContentFunction.java:556) at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:248) Caused by: java.time.format.DateTimeParseException: Text '2021-02-15T23:00:00.000Z' could not be parsed, unparsed text found at index 10 at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2049) at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1948) at java.base/java.time.LocalDate.parse(LocalDate.java:428) at org.ametys.core.util.DateUtils.parseLocalDate(DateUtils.java:406) at org.ametys.core.model.type.AbstractDateElementType.convertValue(AbstractDateElementType.java:52) ... 140 more