diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-28 11:49:37 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-28 11:49:37 +0000 |
| commit | 9800e5a3307cb11d418bb77b651ca52d3375090f (patch) | |
| tree | 31b9fc17907bdce04203b155bfd8e768090a0d4e /roundcubemail/program/js/app.js | |
| parent | 48abf2044873af889cd3a69f5d8dfb9485f2baae (diff) | |
Distinguish standard timezone offset and DST of client
git-svn-id: https://svn.roundcube.net/trunk@5285 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 22599ebf0..1a8d96793 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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 () { |
