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 3e624f3 + 57e50c3 commit c6504bdCopy full SHA for c6504bd
serializer.rst
@@ -232,7 +232,7 @@ Use the options to specify context specific to normalization or denormalization:
232
{
233
#[Context(
234
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'],
235
- denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => \DateTime::RFC3339],
+ denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => '!Y-m-d'], // To prevent to have the time from the moment of denormalization
236
)]
237
public \DateTimeInterface $createdAt;
238
0 commit comments