From b59b4a644bc226b97e00a445a21d8a696406eb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 21 Nov 2024 09:39:48 +0100 Subject: [PATCH] Fix date normalization: use the same timezone consistently --- .../ChillMainBundle/Serializer/Normalizer/DateNormalizer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php index e17c0120c..2493b1794 100644 --- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php +++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php @@ -89,6 +89,8 @@ class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInt 'long' => $formatterLong->format($date), ]; } + + throw new UnexpectedValueException("format not supported: {$format}"); } public function supportsDenormalization($data, $type, $format = null): bool