From ded77292d5f355fc63f2d4dad6252b6e630ac31a Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 23 Oct 2023 11:44:48 +0200 Subject: Update lib/private/TextToImage/Db/TaskMapper.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr --- lib/private/TextToImage/Db/TaskMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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('*') -- cgit v1.2.3