diff options
author | Andrew Dolgov <[email protected]> | 2013-04-26 10:31:57 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-26 10:31:57 +0400 |
commit | 6bfc97da869ca180d2f5fee01c9ff503cb47b1bd (patch) | |
tree | c495b5ac3d3701399cf657615de8c5f221d6f74e /js/tt-rss.js | |
parent | 5ddef5ba238ad8bdfc23344b3bb3297067eb1747 (diff) |
add automatic timezone (based on client tz offset)
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 2 |
1 files changed, 2 insertions, 0 deletions
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); |