mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-27 02:04:30 +03:00
Fixed invalid date in device last connect.
This commit is contained in:
parent
78b915f3d8
commit
e872a453d4
@ -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>');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user