mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
Force restart radvd on TZ change; closes #1551
This commit is contained in:
parent
829e0aa268
commit
36af267de3
@ -133,6 +133,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
|
||||
if (count($input_errors) == 0) {
|
||||
$timezone_changed = $config['system']['timezone'] != $pconfig['timezone'];
|
||||
|
||||
$config['system']['hostname'] = $pconfig['hostname'];
|
||||
$config['system']['domain'] = $pconfig['domain'];
|
||||
$config['system']['timezone'] = $pconfig['timezone'];
|
||||
@ -229,6 +231,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
system_timezone_configure();
|
||||
filter_configure();
|
||||
|
||||
if ($timezone_changed) {
|
||||
/* services that have trouble with changing time zones */
|
||||
services_radvd_configure();
|
||||
}
|
||||
|
||||
header(url_safe('Location: /system_general.php?savemsg=%s', array(get_std_save_message(true))));
|
||||
exit;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user