[
https://issues.apache.org/jira/browse/JOHNZON-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17751355#comment-17751355
]
Romain Manni-Bucau commented on JOHNZON-399:
--------------------------------------------
Hi Mark,
This is expected, the offset date works.
An offset date for a localdate is invalid and must fail (similarly to sending
"true" instead of true for a boolean).
IIRC ,we just have a compat mode for pre-jsonb erea but means your code must
use a deserializer or map to the corrext type more than anything johnzon
related.
> JsonbLocalDateConverter should also read javascript date format
> ---------------------------------------------------------------
>
> Key: JOHNZON-399
> URL: https://issues.apache.org/jira/browse/JOHNZON-399
> Project: Johnzon
> Issue Type: Improvement
> Components: JSON-B
> Affects Versions: 1.2.21
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Priority: Major
> Fix For: 2.0.0, 1.2.22
>
>
> Javascript's date is very similar to java.util.Date - it does not only
> contain the date but also a time portion. The format is
> {code:java}
> YYYY-MM-DDTHH:mm:ss.sssZ{code}
> When using e.g. a datepicker and send it via JSON in JavaScript the time
> portion is set to 00:00:00.000. But this leads to a date format exception in
> our {code}JsonbLocalDateConverter{code}.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)