Cookie icingaweb2-tzo: use `-' as separator

fixes #11126
This commit is contained in:
Alexander A. Klimov 2016-02-25 13:21:34 +01:00
parent 43a7ed357a
commit af18334e3e
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -73,7 +73,7 @@
return;
}
this.writeCookie(this.cookieName, timezoneOffset + ',' + Number(dst), 1);
this.writeCookie(this.cookieName, timezoneOffset + '-' + Number(dst), 1);
},
/**