Commit 36af267d authored by evbevz's avatar evbevz Committed by Franco Fichtner

Force restart radvd on TZ change; closes #1551

parent 829e0aa2
...@@ -133,6 +133,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -133,6 +133,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
if (count($input_errors) == 0) { if (count($input_errors) == 0) {
$timezone_changed = $config['system']['timezone'] != $pconfig['timezone'];
$config['system']['hostname'] = $pconfig['hostname']; $config['system']['hostname'] = $pconfig['hostname'];
$config['system']['domain'] = $pconfig['domain']; $config['system']['domain'] = $pconfig['domain'];
$config['system']['timezone'] = $pconfig['timezone']; $config['system']['timezone'] = $pconfig['timezone'];
...@@ -229,6 +231,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -229,6 +231,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
system_timezone_configure(); system_timezone_configure();
filter_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)))); header(url_safe('Location: /system_general.php?savemsg=%s', array(get_std_save_message(true))));
exit; exit;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment