diff options
author | thomascube <thomas@roundcube.net> | 2011-09-28 11:49:37 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-09-28 11:49:37 +0000 |
commit | 65082b3adbfaa04c4aff7c41147bb43e34941106 (patch) | |
tree | 193989ac4b845ed55db352c7790f5f10fab9f347 /program/js/app.js | |
parent | 1991b77ace5fe11fc897ac4795c9f9771f6ae57c (diff) |
Distinguish standard timezone offset and DST of client
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 22599ebf0..1a8d96793 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -380,7 +380,10 @@ function rcube_webmail() $('#rcmloginpwd').focus(); // detect client timezone - $('#rcmlogintz').val(new Date().getTimezoneOffset() / -60); + var tz = new Date().getTimezoneOffset() / -60; + var stdtz = new Date().getStdTimezoneOffset() / -60; + $('#rcmlogintz').val(stdtz); + $('#rcmlogindst').val(tz > stdtz ? 0 : 0); // display 'loading' message on form submit, lock submit button $('form').submit(function () { |