diff --git a/library/Icinga/Util/TimezoneDetect.php b/library/Icinga/Util/TimezoneDetect.php index dfd8d550d..f5e033ae0 100644 --- a/library/Icinga/Util/TimezoneDetect.php +++ b/library/Icinga/Util/TimezoneDetect.php @@ -53,7 +53,7 @@ class TimezoneDetect } if (Platform::isCli() === false && array_key_exists(self::$cookieName, $_COOKIE)) { - list($offset, $dst) = explode(',', $_COOKIE[self::$cookieName]); + list($offset, $dst) = explode('-', $_COOKIE[self::$cookieName]); $timezoneName = timezone_name_from_abbr('', (int)$offset, (int)$dst); self::$success = (bool)$timezoneName; diff --git a/public/js/icinga/timezone.js b/public/js/icinga/timezone.js index 1395671a5..c018c5db1 100644 --- a/public/js/icinga/timezone.js +++ b/public/js/icinga/timezone.js @@ -73,7 +73,7 @@ return; } - this.writeCookie(this.cookieName, timezoneOffset + ',' + Number(dst), 1); + this.writeCookie(this.cookieName, timezoneOffset + '-' + Number(dst), 1); }, /**