We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ac92c commit 4bdcc5bCopy full SHA for 4bdcc5b
serializer.rst
@@ -243,7 +243,7 @@ Use the options to specify context specific to normalization or denormalization:
243
{
244
#[Context(
245
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'],
246
- denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => \DateTime::RFC3339],
+ denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => '!Y-m-d'], // To prevent to have the time from the moment of denormalization
247
)]
248
public $createdAt;
249
0 commit comments