We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21e4f7d + 0953037 commit f814006Copy full SHA for f814006
serializer.rst
@@ -212,7 +212,7 @@ Use the options to specify context specific to normalization or denormalization:
212
{
213
#[Context(
214
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'],
215
- denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => \DateTime::RFC3339],
+ denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => '!Y-m-d'], // To prevent to have the time from the moment of denormalization
216
)]
217
public \DateTimeInterface $createdAt;
218
0 commit comments