fix: no manual timezones
This commit is contained in:
parent
f914766989
commit
4707f69b91
2 changed files with 2 additions and 16 deletions
|
|
@ -245,7 +245,6 @@ public function submit()
|
||||||
$newTimezone = $this->server->settings->server_timezone;
|
$newTimezone = $this->server->settings->server_timezone;
|
||||||
if ($currentTimezone !== $newTimezone || $currentTimezone === '') {
|
if ($currentTimezone !== $newTimezone || $currentTimezone === '') {
|
||||||
$this->server->settings->server_timezone = $newTimezone;
|
$this->server->settings->server_timezone = $newTimezone;
|
||||||
$this->server->settings->save();
|
|
||||||
}
|
}
|
||||||
$this->server->settings->save();
|
$this->server->settings->save();
|
||||||
$this->server->save();
|
$this->server->save();
|
||||||
|
|
@ -255,14 +254,6 @@ public function submit()
|
||||||
return handleError($e, $this);
|
return handleError($e, $this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updatedServerSettingsServerTimezone($value)
|
|
||||||
{
|
|
||||||
$this->server->settings->server_timezone = $value;
|
|
||||||
$this->server->settings->save();
|
|
||||||
$this->dispatch('success', 'Server timezone updated.');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function manualCleanup()
|
public function manualCleanup()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ class Index extends Component
|
||||||
protected string $dynamic_config_path = '/data/coolify/proxy/dynamic';
|
protected string $dynamic_config_path = '/data/coolify/proxy/dynamic';
|
||||||
|
|
||||||
protected Server $server;
|
protected Server $server;
|
||||||
|
public $timezones;
|
||||||
|
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'settings.fqdn' => 'nullable',
|
'settings.fqdn' => 'nullable',
|
||||||
|
|
@ -53,9 +54,9 @@ class Index extends Component
|
||||||
'settings.is_auto_update_enabled' => 'Auto Update Enabled',
|
'settings.is_auto_update_enabled' => 'Auto Update Enabled',
|
||||||
'auto_update_frequency' => 'Auto Update Frequency',
|
'auto_update_frequency' => 'Auto Update Frequency',
|
||||||
'update_check_frequency' => 'Update Check Frequency',
|
'update_check_frequency' => 'Update Check Frequency',
|
||||||
|
'settings.instance_timezone' => 'Instance Timezone',
|
||||||
];
|
];
|
||||||
|
|
||||||
public $timezones;
|
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
|
|
@ -170,12 +171,6 @@ public function checkManually()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updatedSettingsInstanceTimezone($value)
|
|
||||||
{
|
|
||||||
$this->settings->instance_timezone = $value;
|
|
||||||
$this->settings->save();
|
|
||||||
$this->dispatch('success', 'Instance timezone updated.');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue