timezone setting

pull/578/head
qkqpttgf 2020-04-05 13:46:27 +08:00 committed by GitHub
parent acb0ac3913
commit 0377867200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -803,7 +803,7 @@
expd.setTime(expd.getTime()+(2*60*60*1000));
var expires = "expires="+expd.toGMTString();
document.cookie="timezone="+timezone+"; path=/; "+expires;
if (timezone!='8') {
if (timezone!=<?php echo $_SERVER['timezone']; ?>) {
alert('Your timezone is '+timezone+', reload local timezone.');
location.href=location.protocol + "//" + location.host + "<?php echo path_format($_SERVER['base_path'] . '/' . $path );?>" ;
}