mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
43a7ed357a
commit
af18334e3e
@ -53,7 +53,7 @@ class TimezoneDetect
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Platform::isCli() === false && array_key_exists(self::$cookieName, $_COOKIE)) {
|
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);
|
$timezoneName = timezone_name_from_abbr('', (int)$offset, (int)$dst);
|
||||||
|
|
||||||
self::$success = (bool)$timezoneName;
|
self::$success = (bool)$timezoneName;
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.writeCookie(this.cookieName, timezoneOffset + ',' + Number(dst), 1);
|
this.writeCookie(this.cookieName, timezoneOffset + '-' + Number(dst), 1);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user