From 845fd7ba685eed95cf42a5f01073463d98467b39 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Wed, 7 Jun 2023 15:13:57 +0530 Subject: [PATCH] fix: missing import --- app/controllers/api/projects.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index c68ce17b5..acf6b1900 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -22,6 +22,7 @@ use Utopia\Database\Permission; use Utopia\Database\Query; use Utopia\Database\Role; use Utopia\Database\Validator\DatetimeValidator; +use Utopia\Database\DateTime; use Utopia\Database\Validator\UID; use Utopia\Domains\Domain; use Appwrite\Extend\Exception; @@ -107,8 +108,8 @@ App::post('/v1/projects') continue; } $backup = $backups[$database]; - $from = DateTime::createFromFormat('H:i', $backup['from']); - $to = DateTime::createFromFormat('H:i', $backup['to']); + $from = \DateTime::createFromFormat('H:i', $backup['from']); + $to = \DateTime::createFromFormat('H:i', $backup['to']); if ($now >= $from && $now <= $to) { unset($databases[$index]); break;