.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);
.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);