diff --git a/src/Command/CronProcessCommand.php b/src/Command/CronProcessCommand.php index 520fe5a..b6b67b7 100644 --- a/src/Command/CronProcessCommand.php +++ b/src/Command/CronProcessCommand.php @@ -4,6 +4,7 @@ namespace Shapecode\Bundle\CronBundle\Command; +use DateTime; use Doctrine\ORM\EntityManagerInterface; use Psr\Clock\ClockInterface; use RuntimeException; @@ -136,7 +137,7 @@ private function recordJobResult( $timeTaken, $statusCode, $buffer, - $this->clock->now(), + DateTime::createFromImmutable($this->clock->now()), ); $this->entityManager->persist($result);