added locale dates

master
cheetah 2 years ago
parent 5432160001
commit d3833ca338

@ -237,6 +237,7 @@ Last LoRaWAN Packet:
const keyData = key.split(':') const keyData = key.split(':')
item.deviceType = keyData[ 0 ], item.deviceID = keyData[ 1 ] item.deviceType = keyData[ 0 ], item.deviceID = keyData[ 1 ]
item.lastSeen = new Date(item.lastSeen).toLocaleString('de')
//item.validStateText = this.validStateLUT[item.validState] //item.validStateText = this.validStateLUT[item.validState]
return item return item
}) })
@ -259,6 +260,7 @@ Last LoRaWAN Packet:
case 3: msg.state = '💬 Responded'; break; case 3: msg.state = '💬 Responded'; break;
} }
} }
msg.date = new Date(msg.date).toLocaleString('de')
return msg return msg
}) })
this.loadingM = false this.loadingM = false

Loading…
Cancel
Save