From d3833ca3389085965a5ed2bad1797b904d962368 Mon Sep 17 00:00:00 2001 From: cheetah Date: Tue, 29 Nov 2022 00:32:44 +0100 Subject: [PATCH] added locale dates --- html_main/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html_main/index.html b/html_main/index.html index 33518b9..a23256e 100644 --- a/html_main/index.html +++ b/html_main/index.html @@ -237,6 +237,7 @@ Last LoRaWAN Packet: const keyData = key.split(':') item.deviceType = keyData[ 0 ], item.deviceID = keyData[ 1 ] + item.lastSeen = new Date(item.lastSeen).toLocaleString('de') //item.validStateText = this.validStateLUT[item.validState] return item }) @@ -259,6 +260,7 @@ Last LoRaWAN Packet: case 3: msg.state = '💬 Responded'; break; } } + msg.date = new Date(msg.date).toLocaleString('de') return msg }) this.loadingM = false