Can't normalize DateTime onject in php (Symfony)... Why it doesn't work? DateTime is the object, isn't it?
$normalizers->normalize($patient->getDateAdded())
Error:
Cannot normalize attribute "timezone" because injected serializer is not a normalizer
You must inject serializer into normalizer. Use $normalizer->setSerializer($this->get('))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With