When attempting to perform a doctrine query and serialze it to json (not using JSM, using the symfony serializer) I get the following in the json:
\"\"due\":{\"timez
Another option is to pass arguments to the default DateTimeNormalizer in services.yaml:
DateTimeNormalizer
services.yaml
Symfony\Component\Serializer\Normalizer\DateTimeNormalizer: arguments: $defaultContext: datetime_format: 'Y-m-d\TH:i:s.v\Z'