aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TextToImage
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-20 13:15:40 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-20 13:15:40 +0200
commit37c4ccc751ad0f1bfbd6c85e33a8c16bdd79ca5c (patch)
treed37f4b3591e96b8856eec65c1bb4543c15e6d849 /lib/private/TextToImage
parent8ab47b64b5fd4ec921d167e418768eae108a9041 (diff)
downloadnextcloud-server-37c4ccc751ad0f1bfbd6c85e33a8c16bdd79ca5c.tar.gz
nextcloud-server-37c4ccc751ad0f1bfbd6c85e33a8c16bdd79ca5c.zip
fix(Text2Image): Fix Task#lastUpdated initialization to use DateTime instead of time()
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TextToImage')
-rw-r--r--lib/private/TextToImage/Db/Task.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextToImage/Db/Task.php b/lib/private/TextToImage/Db/Task.php
index 12818d956c2..8d857ce47ea 100644
--- a/lib/private/TextToImage/Db/Task.php
+++ b/lib/private/TextToImage/Db/Task.php
@@ -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(),