summaryrefslogtreecommitdiffstats
path: root/core/js/visitortimezone.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-21 21:10:44 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-01-21 21:10:44 +0100
commit39da6f816600d18ece6f7dd7b9e72ef90f83586e (patch)
treec3cb7e335a9244ed1ed0f16d64798288866ec48d /core/js/visitortimezone.js
parent0c59074eeb4e3e11d2d0423e8745fe7822498d26 (diff)
downloadnextcloud-server-39da6f816600d18ece6f7dd7b9e72ef90f83586e.tar.gz
nextcloud-server-39da6f816600d18ece6f7dd7b9e72ef90f83586e.zip
Move timezone check to external JS
Diffstat (limited to 'core/js/visitortimezone.js')
-rw-r--r--core/js/visitortimezone.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/visitortimezone.js b/core/js/visitortimezone.js
new file mode 100644
index 00000000000..58a1e9ea355
--- /dev/null
+++ b/core/js/visitortimezone.js
@@ -0,0 +1,4 @@
+$(document).ready(function () {
+ var visitortimezone = (-new Date().getTimezoneOffset() / 60);
+ $('#timezone-offset').val(visitortimezone);
+}); \ No newline at end of file