-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Serializer] Support specifying format for DateTimeNormalizer::denormalize #7063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Serializer] Support specifying format for DateTimeNormalizer::denormalize #7063
Conversation
…malizer::denormalize (teohhanhui) This PR was merged into the 3.2-dev branch. Discussion ---------- [Serializer] Support specifying format for DateTimeNormalizer::denormalize | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | symfony/symfony-docs#7063 Commits ------- ff23924 [Serializer] Support specifying format for DateTimeNormalizer::denormalize
@@ -528,6 +528,10 @@ There are several types of normalizers available: | |||
:phpclass:`DateTime` and :phpclass:`DateTimeImmutable`) into strings. | |||
By default it uses the RFC3339_ format. | |||
|
|||
.. versionadded:: 3.2 | |||
Support for specifying datetime format during denormalization was added to | |||
``DateTimeNormalizer`` in Symfony 3.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please indent this complete directive to the same level as the description at line 527 - 529.
👍 I've left one minor comment, but we can also fix it during merging. In the future, we may want to document all available settings and the like. status: reviewed |
👍 |
…alizer::denormalize (teohhanhui) This PR was merged into the master branch. Discussion ---------- [Serializer] Support specifying format for DateTimeNormalizer::denormalize Waiting for symfony/symfony#20217 to be merged. Commits ------- 57bf969 [Serializer] Support specifying format for DateTimeNormalizer::denormalize
Thanks @teohhanhui! I've fixed my minor comment in 2083d9d and created an issue to document all these options in #7135 |
Waiting for symfony/symfony#20217 to be merged.