<?php $dateTime = DateTimeImmutable::createFromFormat($platform->getDateTimeFormatString(), $value); if ($dateTime === false) { $dateTime = date_create_immutable($value); } if ($dateTime === false) {
<?php return $value; } $dateTime = date_create_immutable($value); if ($dateTime === false) { throw ConversionException::conversionFailed($value, $this->getName());