summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-26 10:31:57 +0400
committerAndrew Dolgov <[email protected]>2013-04-26 10:31:57 +0400
commit6bfc97da869ca180d2f5fee01c9ff503cb47b1bd (patch)
treec495b5ac3d3701399cf657615de8c5f221d6f74e /js/prefs.js
parent5ddef5ba238ad8bdfc23344b3bb3297067eb1747 (diff)
add automatic timezone (based on client tz offset)
Diffstat (limited to 'js/prefs.js')
-rw-r--r--js/prefs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/prefs.js b/js/prefs.js
index 8612b70fb..431a1fe84 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -962,8 +962,11 @@ function init() {
dojo.addOnLoad(function() {
loading_set_progress(50);
+ var clientTzOffset = new Date().getTimezoneOffset() * 60;
+
new Ajax.Request("backend.php", {
- parameters: {op: "rpc", method: "sanityCheck"},
+ parameters: {op: "rpc", method: "sanityCheck",
+ clientTzOffset: clientTzOffset },
onComplete: function(transport) {
backend_sanity_check_callback(transport);
} });