mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 22:23:14 -05:00
add lastbootuptime to mobile (#5504)
This commit is contained in:
parent
e04659a63d
commit
b4887b7766
@ -5833,6 +5833,18 @@
|
||||
else if (m.OSArchitecture.startsWith('64')) { x += addDetailItem("Architecture", "64-bit", s); }
|
||||
else { x += addDetailItem("Architecture", EscapeHtml(m.OSArchitecture), s); }
|
||||
}
|
||||
if(m.LastBootUpTime){
|
||||
var thedate = {
|
||||
year: parseInt(m.LastBootUpTime.substring(0, 4)),
|
||||
month: parseInt(m.LastBootUpTime.substring(4, 6)) - 1, // Months are 0-based in JavaScript (0 - January, 11 - December)
|
||||
day: parseInt(m.LastBootUpTime.substring(6, 8)),
|
||||
hours: parseInt(m.LastBootUpTime.substring(8, 10)),
|
||||
minutes: parseInt(m.LastBootUpTime.substring(10, 12)),
|
||||
seconds: parseInt(m.LastBootUpTime.substring(12, 14)),
|
||||
};
|
||||
const date = printDateTime(new Date(thedate.year, thedate.month, thedate.day, thedate.hours, thedate.minutes, thedate.seconds));
|
||||
x += addDetailItem("Last Boot Up Time", date);
|
||||
}
|
||||
}
|
||||
|
||||
// Windows Security Central
|
||||
|
Loading…
x
Reference in New Issue
Block a user