mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #5672 from appwrite/fix-cloud-bug
fix: missing import
This commit is contained in:
1 file changed
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user