aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-23 11:44:48 +0200
committerGitHub <noreply@github.com>2023-10-23 11:44:48 +0200
commitded77292d5f355fc63f2d4dad6252b6e630ac31a (patch)
treec3bce28f038681364a97bd7519cd4b3ee46a6d50 /lib
parentf9d209cf1519e10cf15e8a8e431ee62dd3192a59 (diff)
downloadnextcloud-server-ded77292d5f355fc63f2d4dad6252b6e630ac31a.tar.gz
nextcloud-server-ded77292d5f355fc63f2d4dad6252b6e630ac31a.zip
Update lib/private/TextToImage/Db/TaskMapper.php
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TextToImage/Db/TaskMapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextToImage/Db/TaskMapper.php b/lib/private/TextToImage/Db/TaskMapper.php
index 00c99706960..e8d4e19c4c6 100644
--- a/lib/private/TextToImage/Db/TaskMapper.php
+++ b/lib/private/TextToImage/Db/TaskMapper.php
@@ -107,7 +107,7 @@ class TaskMapper extends QBMapper {
* @throws Exception
*/
public function deleteOlderThan(int $timeout): array {
- $datetime = new DateTime();
+ $datetime = $this->timeFactory->getDateTime();
$datetime->sub(new \DateInterval('PT'.$timeout.'S'));
$qb = $this->db->getQueryBuilder();
$qb->select('*')