File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace Shapecode \Bundle \CronBundle \Command ;
66
7- use DateTime ;
87use Doctrine \ORM \EntityManagerInterface ;
98use Psr \Clock \ClockInterface ;
109use RuntimeException ;
@@ -137,7 +136,7 @@ private function recordJobResult(
137136 $ timeTaken ,
138137 $ statusCode ,
139138 $ buffer ,
140- DateTime:: createFromImmutable ( $ this ->clock ->now () ),
139+ $ this ->clock ->now (),
141140 );
142141
143142 $ this ->entityManager ->persist ($ result );
Original file line number Diff line number Diff line change 44
55namespace Shapecode \Bundle \CronBundle \Entity ;
66
7+ use DateTime ;
78use DateTimeInterface ;
89use Doctrine \DBAL \Types \Types ;
910use Doctrine \ORM \Mapping as ORM ;
@@ -41,7 +42,7 @@ public function __construct(
4142 $ this ->statusCode = $ statusCode ;
4243 $ this ->output = $ output ;
4344 $ this ->cronJob = $ cronJob ;
44- $ this ->runAt = $ runAt ;
45+ $ this ->runAt = DateTime:: createFromInterface ( $ runAt) ;
4546 }
4647
4748 public function getRunAt (): DateTimeInterface
You can’t perform that action at this time.
0 commit comments