fix: no manual timezones
This commit is contained in:
@@ -245,7 +245,6 @@ class Form extends Component
|
|||||||
$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 @@ class Form extends Component
|
|||||||
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 @@ class Index extends Component
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updatedSettingsInstanceTimezone($value)
|
|
||||||
{
|
|
||||||
$this->settings->instance_timezone = $value;
|
|
||||||
$this->settings->save();
|
|
||||||
$this->dispatch('success', 'Instance timezone updated.');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user