Fixed invalid date in device last connect.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-28 10:46:45 -07:00
parent 11af25924a
commit fe4b71dbed

View File

@ -2071,7 +2071,7 @@
if (node != null) {
node.lastconnect = message.time;
node.lastaddr = message.addr;
if ((currentNode._id == node._id) && (Q('MainComputerState').innerHTML == '')) {
if ((currentNode._id == node._id) && (Q('MainComputerState').innerHTML == '') && (node.lastconnect != null)) {
QH('MainComputerState', '<span>' + "Last seen:" + '<br />' + printDateTime(new Date(node.lastconnect)) + '</span>');
}
}