parent
bc0790381e
commit
d65f8bba73
@ -0,0 +1,4 @@ |
||||
<?php |
||||
session_start(); |
||||
$_SESSION['timezone'] = $_GET['time']; |
||||
?> |
@ -0,0 +1,12 @@ |
||||
//send the clients time zone to the server
|
||||
$(document).ready(function() { |
||||
var visitortimezone = (-new Date().getTimezoneOffset()/60); |
||||
$.ajax({ |
||||
type: "GET", |
||||
url: "ajax/timezone.php", |
||||
data: 'time='+ visitortimezone, |
||||
success: function(){ |
||||
location.reload(); |
||||
} |
||||
}); |
||||
}); |
Loading…
Reference in new issue