fix(Text2Image): Fix Task#lastUpdated initialization to use DateTime instead of time()

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-10-20 13:15:40 +02:00
parent 8ab47b64b5
commit 37c4ccc751

View file

@ -90,7 +90,7 @@ class Task extends Entity {
/** @var Task $dbTask */
$dbTask = Task::fromParams([
'id' => $task->getId(),
'lastUpdated' => time(),
'lastUpdated' => new DateTime('now'),
'status' => $task->getStatus(),
'numberOfImages' => $task->getNumberOfImages(),
'input' => $task->getInput(),