summaryrefslogtreecommitdiffstats
path: root/core/templates/login.php
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/templates/login.php
parent0c59074eeb4e3e11d2d0423e8745fe7822498d26 (diff)
downloadnextcloud-server-39da6f816600d18ece6f7dd7b9e72ef90f83586e.tar.gz
nextcloud-server-39da6f816600d18ece6f7dd7b9e72ef90f83586e.zip
Move timezone check to external JS
Diffstat (limited to 'core/templates/login.php')
-rw-r--r--core/templates/login.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index 43e45997803..c82d2cafa2e 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -41,10 +41,5 @@
<input type="submit" id="submit" class="login primary" value="<?php echo $l->t('Log in'); ?>"/>
</fieldset>
</form>
-<script>
- $(document).ready(function () {
- var visitortimezone = (-new Date().getTimezoneOffset() / 60);
- $('#timezone-offset').val(visitortimezone);
- });
+<?php OCP\Util::addscript('core', 'visitortimezone'); ?>
-</script>