diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-10-20 13:15:40 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-10-20 13:15:40 +0200 |
commit | 37c4ccc751ad0f1bfbd6c85e33a8c16bdd79ca5c (patch) | |
tree | d37f4b3591e96b8856eec65c1bb4543c15e6d849 /lib/private/TextToImage | |
parent | 8ab47b64b5fd4ec921d167e418768eae108a9041 (diff) | |
download | nextcloud-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.php | 2 |
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(), |