I have a php page which uses checks to see if the tz variable is in the
argument list.. if not, it recalls the page using javascript with the added
tz argument.. if I run it locally here in the UK, the tz is set to 0 which
is correct. If I run it on a US server, it initially returns -1, but in IE
if I do a ctrl-refresh, it correctly gets it as 0.
Any ideas ?
<?php
if (!isset($_GET['tz'])) print "
<script type=\"text/javascript\">
now = new Date();
window.location .href=\"$_SERVE R[PHP_SELF]?tz=\" + (now.getTimezon eOffset() /
60);
</script>";
argument list.. if not, it recalls the page using javascript with the added
tz argument.. if I run it locally here in the UK, the tz is set to 0 which
is correct. If I run it on a US server, it initially returns -1, but in IE
if I do a ctrl-refresh, it correctly gets it as 0.
Any ideas ?
<?php
if (!isset($_GET['tz'])) print "
<script type=\"text/javascript\">
now = new Date();
window.location .href=\"$_SERVE R[PHP_SELF]?tz=\" + (now.getTimezon eOffset() /
60);
</script>";
Comment