protected property TimestampNormalizer::$allowedFormats in JSON:API 8.2
Allowed datetime formats for the denormalizer.
The list is chosen to be unambiguous and language neutral, but also common for data interchange.
Type: string[]
Overrides DateTimeNormalizer::$allowedFormats
See also
http://php.net/manual/en/datetime.createfromformat.php
File
- src/
ForwardCompatibility/ Normalizer/ TimestampNormalizer.php, line 25
Class
- TimestampNormalizer
- Converts values for the Timestamp data type to and from common formats.
Namespace
Drupal\jsonapi\ForwardCompatibility\NormalizerCode
protected $allowedFormats = [
'UNIX timestamp' => 'U',
'ISO 8601' => \DateTime::ISO8601,
'RFC 3339' => \DateTime::RFC3339,
];