mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
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:
parent
8ab47b64b5
commit
37c4ccc751
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue