This commit is contained in:
BingoKingo
2020-04-08 21:48:00 +08:00
parent 7bda14f7a8
commit fd18df21cf
9 changed files with 82 additions and 54 deletions
+1 -1
View File
@@ -814,7 +814,7 @@ echo '</script>';
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 );?>" ;
}