Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd52d708

Browse files
committed
[Serializer] Add PRESERVE_CONTEXT_TIMEZONE_KEY to DateTimeNormalizer
- Updated docs to updated const
1 parent154145c commitd52d708

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎serializer.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,8 @@ normalizers (in order of priority):
13751375

13761376
To always create:phpclass:`DateTime` and:phpclass:`DateTimeImmutable`
13771377
with the timezone specified in the context, set the
1378-
``DateTimeNormalizer::PRESERVE_CONTEXT_TIMEZONE_KEY`` context option to
1379-
``true``. This willpreserve the timezone of the context and ignores any
1378+
``DateTimeNormalizer::FORCE_TIMEZONE_KEY`` context option to
1379+
``true``. This willforce the timezone of the context and ignores any
13801380
timezone from the input.
13811381

13821382
To convert the objects to integers or floats, set the serializer
@@ -1387,9 +1387,9 @@ normalizers (in order of priority):
13871387

13881388
The ``DateTimeNormalizer::CAST_KEY`` context option was introduced in Symfony 7.1.
13891389

1390-
..versionadded::7.3
1390+
..versionadded::7.4
13911391

1392-
The ``DateTimeNormalizer::PRESERVE_CONTEXT_TIMEZONE_KEY`` context option was introduced in Symfony 7.3.
1392+
The ``DateTimeNormalizer::FORCE_TIMEZONE_KEY`` context option was introduced in Symfony 7.3.
13931393

13941394
:class:`Symfony\\Component\\Serializer\\Normalizer\\ConstraintViolationListNormalizer`
13951395
This normalizer converts objects that implement

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp