You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Mark Struberg (Jira)" <ji...@apache.org> on 2023/08/05 19:55:00 UTC

[jira] [Created] (JOHNZON-399) JsonbLocalDateConverter should also read javascript date format

Mark Struberg created JOHNZON-399:
-------------------------------------

             Summary: 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
             Fix For: 1.2.22, 2.0.0


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)