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…
Reference in New Issue