diff --git a/serializer.rst b/serializer.rst index 54a7e28b4cd..35894018cb5 100644 --- a/serializer.rst +++ b/serializer.rst @@ -243,7 +243,7 @@ Use the options to specify context specific to normalization or denormalization: { #[Context( normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'], - denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => \DateTime::RFC3339], + denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => '!Y-m-d'], // To prevent to have the time from the moment of denormalization )] public $createdAt;
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: