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