Fix date normalization: use the same timezone consistently

This commit is contained in:
Julien Fastré 2024-11-21 09:39:48 +01:00
parent 40fec3c530
commit b59b4a644b
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -89,6 +89,8 @@ class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInt
'long' => $formatterLong->format($date), 'long' => $formatterLong->format($date),
]; ];
} }
throw new UnexpectedValueException("format not supported: {$format}");
} }
public function supportsDenormalization($data, $type, $format = null): bool public function supportsDenormalization($data, $type, $format = null): bool