diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/prefs.js | 5 | ||||
-rw-r--r-- | js/tt-rss.js | 2 |
2 files changed, 6 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); } }); diff --git a/js/tt-rss.js b/js/tt-rss.js index 88a360f99..a7518959c 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -256,10 +256,12 @@ function init() { var hasAudio = !!a.canPlayType; var hasSandbox = "sandbox" in document.createElement("iframe"); var hasMp3 = !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, '')); + var clientTzOffset = new Date().getTimezoneOffset() * 60; new Ajax.Request("backend.php", { parameters: {op: "rpc", method: "sanityCheck", hasAudio: hasAudio, hasMp3: hasMp3, + clientTzOffset: clientTzOffset, hasSandbox: hasSandbox}, onComplete: function(transport) { backend_sanity_check_callback(transport); |