timezone.js 279 B

123456789101112
  1. //send the clients time zone to the server
  2. $(document).ready(function() {
  3. var visitortimezone = (-new Date().getTimezoneOffset()/60);
  4. $.ajax({
  5. type: "GET",
  6. url: "ajax/timezone.php",
  7. data: 'time='+ visitortimezone,
  8. success: function(){
  9. location.reload();
  10. }
  11. });
  12. });