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 72cf82a + c6504bd commit 0953037Copy full SHA for 0953037
serializer.rst
@@ -216,7 +216,7 @@ Use the options to specify context specific to normalization or denormalization:
216
{
217
#[Context(
218
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'],
219
- denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => \DateTime::RFC3339],
+ denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => '!Y-m-d'], // To prevent to have the time from the moment of denormalization
220
)]
221
public \DateTimeInterface $createdAt;
222
0 commit comments