timezone setting

This commit is contained in:
qkqpttgf
2020-04-05 13:46:27 +08:00
committed by GitHub
parent acb0ac3913
commit 0377867200
+1 -1
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 );?>" ;
}