diff options
Diffstat (limited to 'apps/files/js/timezone.js')
-rw-r--r-- | apps/files/js/timezone.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files/js/timezone.js b/apps/files/js/timezone.js new file mode 100644 index 00000000000..d569683f210 --- /dev/null +++ b/apps/files/js/timezone.js @@ -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(); + } + }); +});
\ No newline at end of file |