From 4bdcc5bb66e0ce5a8fd7b4378b12dcbd8aadbb72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Isaert?= Date: Fri, 29 Dec 2023 15:46:21 +0100 Subject: [PATCH] [Serializer] Better example for date denormalization --- serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy