From a57e07650b5143d0e334c01a4e4e95b2964135e3 Mon Sep 17 00:00:00 2001 From: Michael Scherle Date: Sat, 10 Dec 2016 15:41:20 +0100 Subject: frontend: time fix --- modules-available/locationinfo/frontend/doorsign.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules-available/locationinfo/frontend') diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html index 70d758b0..2ad34768 100755 --- a/modules-available/locationinfo/frontend/doorsign.html +++ b/modules-available/locationinfo/frontend/doorsign.html @@ -378,11 +378,10 @@ optional: if(json.einkmode!=null) { eInkMode = JSON.parse(json.einkmode); } - configupdate = parseInt(json.configupdate)* 60 * 1000;; + configupdate = parseInt(json.configupdate)* 60 * 1000; room = json.room; } - - var time = new Date(time); + var time = new Date(json.time); if (isNaN(time.getTime())) { time = new Date(); } @@ -636,7 +635,7 @@ optional: }, error: function () { setTimeout(queryCalendar, queryTimeCalendar); } - }) + }); } function updateCalendar(json) { -- cgit v1.2.3-55-g7522