From 5ca15353c392ff167e7b8516005428ffb5077efc Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Thu, 6 Sep 2018 18:19:19 +0200 Subject: [PATCH] fix strftime format in current air/water updates --- web/static/seepark_web.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index fdc5377..88854ca 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -220,7 +220,7 @@ setInterval( .then((resp) => resp.json()) .then(function(data) { airvalue.innerText = data['value'].toFixed(1); - airtime.innerText = strftime('%Y-%m-%d H:%M', new Date(data['timestamp'])); + airtime.innerText = strftime('%Y-%m-%d %H:%M', new Date(data['timestamp'])); }) .catch(function(error) { console.log(error); @@ -229,7 +229,7 @@ setInterval( .then((resp) => resp.json()) .then(function(data) { watervalue.innerText = data['value'].toFixed(1); - watertime.innerText = strftime('%Y-%m-%d H:%M', new Date(data['timestamp'])); + watertime.innerText = strftime('%Y-%m-%d %H:%M', new Date(data['timestamp'])); }) .catch(function(error) { console.log(error); -- 2.47.3