From d65f8bba73971e33a93e99d21ba791dec8056a28 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 5 Jun 2011 15:13:03 +0200 Subject: try to adjust times to the clients timezone --- files/js/timezone.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 files/js/timezone.js (limited to 'files/js') 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 -- cgit v1.2.3