Skip to content

Commit 366d74a

Browse files
committed
Tweaks
1 parent 20cfcf0 commit 366d74a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

components/serializer.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,12 @@ There are several types of normalizers available:
738738
By default, it uses the `RFC3339`_ format.
739739

740740
:class:`Symfony\\Component\\Serializer\\Normalizer\\DateTimeZoneNormalizer`
741-
This normalizer converts :phpclass:`DateTimeZone` objects into strings.
742-
By default, it uses the `RFC3339`_ format.
741+
This normalizer converts :phpclass:`DateTimeZone` objects into strings that
742+
represent the name of the timezone according to the `list of PHP timezones`_.
743+
744+
.. versionadded:: 4.3
745+
746+
The ``DateTimeZoneNormalizer`` was introduced in Symfony 4.3.
743747

744748
:class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer`
745749
This normalizer converts :phpclass:`SplFileInfo` objects into a data URI
@@ -1504,3 +1508,4 @@ Learn more
15041508
.. _`RFC 7807`: https://tools.ietf.org/html/rfc7807
15051509
.. _`Value Objects`: https://en.wikipedia.org/wiki/Value_object
15061510
.. _`API Platform`: https://api-platform.com
1511+
.. _`list of PHP timezones`: https://www.php.net/manual/en/timezones.php

serializer.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ As well as the following normalizers:
7070
* :class:`Symfony\\Component\\Serializer\\Normalizer\\ArrayDenormalizer` to
7171
denormalize arrays of objects using a format like `MyObject[]` (note the `[]` suffix)
7272

73+
.. versionadded:: 4.3
74+
75+
The ``DateTimeZoneNormalizer`` was introduced in Symfony 4.3.
76+
7377
Custom normalizers and/or encoders can also be loaded by tagging them as
7478
:ref:`serializer.normalizer <reference-dic-tags-serializer-normalizer>` and
7579
:ref:`serializer.encoder <reference-dic-tags-serializer-encoder>`. It's also

0 commit comments

Comments
 (0)