File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -738,8 +738,12 @@ There are several types of normalizers available:
738
738
By default, it uses the `RFC3339 `_ format.
739
739
740
740
: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.
743
747
744
748
:class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ DataUriNormalizer `
745
749
This normalizer converts :phpclass: `SplFileInfo ` objects into a data URI
@@ -1504,3 +1508,4 @@ Learn more
1504
1508
.. _`RFC 7807` : https://tools.ietf.org/html/rfc7807
1505
1509
.. _`Value Objects` : https://en.wikipedia.org/wiki/Value_object
1506
1510
.. _`API Platform` : https://api-platform.com
1511
+ .. _`list of PHP timezones` : https://www.php.net/manual/en/timezones.php
Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ As well as the following normalizers:
70
70
* :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ ArrayDenormalizer ` to
71
71
denormalize arrays of objects using a format like `MyObject[] ` (note the `[] ` suffix)
72
72
73
+ .. versionadded :: 4.3
74
+
75
+ The ``DateTimeZoneNormalizer `` was introduced in Symfony 4.3.
76
+
73
77
Custom normalizers and/or encoders can also be loaded by tagging them as
74
78
:ref: `serializer.normalizer <reference-dic-tags-serializer-normalizer >` and
75
79
:ref: `serializer.encoder <reference-dic-tags-serializer-encoder >`. It's also
You can’t perform that action at this time.
0 commit comments