1
0
Fork 0
mirror of synced 2024-07-08 07:55:48 +12:00

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

fix: missing import
This commit is contained in:
Christy Jacob 2023-06-07 15:18:36 +05:30 committed by GitHub
commit d2b11f91fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;