From 36af267de333a970bedffe54766c8e1aa99b5911 Mon Sep 17 00:00:00 2001 From: evbevz Date: Thu, 20 Apr 2017 16:49:54 +0300 Subject: [PATCH] Force restart radvd on TZ change; closes #1551 --- src/www/system_general.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/www/system_general.php b/src/www/system_general.php index 6770b67a6..d4e9cbfda 100644 --- a/src/www/system_general.php +++ b/src/www/system_general.php @@ -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; }