You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
given that the format is configurable in the handler, it cannot be implemented the Drupal way (Drupal can do it because ISO8601 is hardcoded in the code)
dates from javascript code doesnt as in:
dat = new Date();
dat.toISOString();
"2014-06-24T16:49:51.439Z"
has fractions of seconds.
PHP doesnt support fractions of seconds https://bugs.php.net/bug.php?id=51950
Drupal has a workaround https://api.drupal.org/api/drupal/core%21vendor%21zendframework%21zend-stdlib%21Zend%21Stdlib%21DateTime.php/function/DateTime%3A%3AcreateFromISO8601/8
You could workaround this in jms config with
jms_serializer:
handlers:
datetime:
default_format: "Y-m-d\TH:i:s.uO" # ISO8601
default_timezone: "UTC"
but it should be better coded in the bundle with a patch like the Drupal one
The text was updated successfully, but these errors were encountered: