Skip to content

Commit 328c799

Browse files
authored
Merge pull request #70 from czachor/master
Fixes wrong datetime type usage
2 parents 7d27e5a + 4f4f466 commit 328c799

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/CronProcessCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Shapecode\Bundle\CronBundle\Command;
66

7+
use DateTime;
78
use Doctrine\ORM\EntityManagerInterface;
89
use Psr\Clock\ClockInterface;
910
use RuntimeException;
@@ -136,7 +137,7 @@ private function recordJobResult(
136137
$timeTaken,
137138
$statusCode,
138139
$buffer,
139-
$this->clock->now(),
140+
DateTime::createFromImmutable($this->clock->now()),
140141
);
141142

142143
$this->entityManager->persist($result);

0 commit comments

Comments
 (0)