Skip to content
Snippets Groups Projects
Select Git revision
  • a7496b1c9d1005b962862cb233d7466d33d3bed1
  • master default protected
2 results

timezone.js

Blame
  • timezone.js 279 B
    //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();
    		}
    	});
    });