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 724f1f2 + f814006 commit c395a81Copy full SHA for c395a81
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