1 2 3 4 5 6 7 8 9 10 11 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(); } }); });