diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-05 15:13:03 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-05 15:13:03 +0200 |
commit | d65f8bba73971e33a93e99d21ba791dec8056a28 (patch) | |
tree | c2d6c44d1a1b79849787ccc6d738c071e659421d /files/js | |
parent | bc0790381e9cf02545bf4b2945c70c246008671f (diff) | |
download | nextcloud-server-d65f8bba73971e33a93e99d21ba791dec8056a28.tar.gz nextcloud-server-d65f8bba73971e33a93e99d21ba791dec8056a28.zip |
try to adjust times to the clients timezone
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/timezone.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/files/js/timezone.js b/files/js/timezone.js new file mode 100644 index 00000000000..d569683f210 --- /dev/null +++ b/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 |