server/apps/files/js/timezone.js
2012-04-23 16:17:35 +02:00

12 lines
No EOL
304 B
JavaScript

//send the clients time zone to the server
$(document).ready(function() {
var visitortimezone = (-new Date().getTimezoneOffset()/60);
$.ajax({
type: "GET",
url: OC.filePath('files', 'ajax', 'timezone.php'),
data: 'time='+ visitortimezone,
success: function(){
location.reload();
}
});
});