diff --git a/app/Livewire/Project/Database/BackupEdit.php b/app/Livewire/Project/Database/BackupEdit.php index b3a54f0ab..bf5302cb9 100644 --- a/app/Livewire/Project/Database/BackupEdit.php +++ b/app/Livewire/Project/Database/BackupEdit.php @@ -40,6 +40,9 @@ class BackupEdit extends Component #[Validate(['required', 'string'])] public string $frequency = ''; + #[Validate(['readonly', 'string'])] + public string $timezone = ''; + #[Validate(['required', 'integer', 'min:1'])] public int $numberOfBackupsLocally = 1; @@ -80,6 +83,7 @@ public function syncData(bool $toModel = false) } else { $this->backupEnabled = $this->backup->enabled; $this->frequency = $this->backup->frequency; + $this->timezone = data_get($this->backup->server(), 'settings.server_timezone', 'Instance timezone'); $this->numberOfBackupsLocally = $this->backup->number_of_backups_locally; $this->saveS3 = $this->backup->save_s3; $this->s3StorageId = $this->backup->s3_storage_id; diff --git a/resources/views/livewire/project/database/backup-edit.blade.php b/resources/views/livewire/project/database/backup-edit.blade.php index b91b35802..59628636d 100644 --- a/resources/views/livewire/project/database/backup-edit.blade.php +++ b/resources/views/livewire/project/database/backup-edit.blade.php @@ -70,6 +70,8 @@