Merge pull request #5672 from appwrite/fix-cloud-bug

fix: missing import
This commit is contained in:
Christy Jacob authored and GitHub committed 2023-06-07 15:18:36 +05:30
commit d2b11f91fa
1 file changed
+3 -2
+3 -2
View File
@@ -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;