diff options
-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('*') |