diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-10-23 11:44:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 11:44:48 +0200 |
commit | ded77292d5f355fc63f2d4dad6252b6e630ac31a (patch) | |
tree | c3bce28f038681364a97bd7519cd4b3ee46a6d50 /lib | |
parent | f9d209cf1519e10cf15e8a8e431ee62dd3192a59 (diff) | |
download | nextcloud-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.php | 2 |
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('*') |