diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-09-23 13:45:21 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-09-23 13:45:21 +0200 |
commit | c587a4aaa212a48aca0b34fc2f9625774e02c472 (patch) | |
tree | 125b5ba8c98d5137e63e71c003135a9b338586d9 /core/js/visitortimezone.js | |
parent | a062db4fd02feb1a0eff48eb130da7cc48c49899 (diff) | |
parent | 814114ab8eda5d383f4c620f3854cfefcdb6895d (diff) | |
download | nextcloud-server-c587a4aaa212a48aca0b34fc2f9625774e02c472.tar.gz nextcloud-server-c587a4aaa212a48aca0b34fc2f9625774e02c472.zip |
Merge pull request #11222 from owncloud/store-users-timezone-master
send browsers timezone back tp the server on login
Diffstat (limited to 'core/js/visitortimezone.js')
-rw-r--r-- | core/js/visitortimezone.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/js/visitortimezone.js b/core/js/visitortimezone.js index 9146e00aade..e6e99ee7e20 100644 --- a/core/js/visitortimezone.js +++ b/core/js/visitortimezone.js @@ -1,6 +1,7 @@ +/* global jstz */ $(document).ready(function () { - var visitortimezone = (-new Date().getTimezoneOffset() / 60); - $('#timezone-offset').val(visitortimezone); + $('#timezone-offset').val((-new Date().getTimezoneOffset() / 60)); + $('#timezone').val(jstz.determine().name()); // only enable the submit button once we are sure that the timezone is set var $loginForm = $('form[name="login"]'); |