From 19c4d88fcb3a19cb85f4b50c6f96a3af42654855 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Mon, 23 Jan 2017 01:55:39 +0100 Subject: [PATCH] Log time needs to be UTC --- templates/contest/log.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/contest/log.html b/templates/contest/log.html index c80d5b4..1676fbf 100644 --- a/templates/contest/log.html +++ b/templates/contest/log.html @@ -32,7 +32,7 @@
-

noot

+

{% now "H:i:s" %}

{% crispy form %} @@ -149,7 +149,7 @@ $(document).ready(function() { function displayTimeInForm() { var d = new Date(); - dstr = zeropad(d.getHours()) + ":" + zeropad(d.getMinutes()) + ":" + zeropad(d.getSeconds()); + dstr = zeropad(d.getUTCHours()) + ":" + zeropad(d.getUTCMinutes()) + ":" + zeropad(d.getUTCSeconds()); $("#id_curr_time").text(dstr); } window.setInterval(displayTimeInForm, 200);