summaryrefslogtreecommitdiffstats
path: root/core/js/visitortimezone.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-23 13:45:21 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-23 13:45:21 +0200
commitc587a4aaa212a48aca0b34fc2f9625774e02c472 (patch)
tree125b5ba8c98d5137e63e71c003135a9b338586d9 /core/js/visitortimezone.js
parenta062db4fd02feb1a0eff48eb130da7cc48c49899 (diff)
parent814114ab8eda5d383f4c620f3854cfefcdb6895d (diff)
downloadnextcloud-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.js5
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"]');