add lastbootuptime to mobile (#5504)

Simon Smith committed Nov 3, 2023 at 19:48 UTC b4887b77661100d6378d30149bb2f78bedcb2999
1 file changed +12
views/default-mobile.handlebars
+12
@@ -5833,6 +5833,18 @@
5833 else if (m.OSArchitecture.startsWith('64')) { x += addDetailItem("Architecture", "64-bit", s); }
5834 else { x += addDetailItem("Architecture", EscapeHtml(m.OSArchitecture), s); }
5835 }
5836 + if(m.LastBootUpTime){
5837 + var thedate = {
5838 + year: parseInt(m.LastBootUpTime.substring(0, 4)),
5839 + month: parseInt(m.LastBootUpTime.substring(4, 6)) - 1, // Months are 0-based in JavaScript (0 - January, 11 - December)
5840 + day: parseInt(m.LastBootUpTime.substring(6, 8)),
5841 + hours: parseInt(m.LastBootUpTime.substring(8, 10)),
5842 + minutes: parseInt(m.LastBootUpTime.substring(10, 12)),
5843 + seconds: parseInt(m.LastBootUpTime.substring(12, 14)),
5844 + };
5845 + const date = printDateTime(new Date(thedate.year, thedate.month, thedate.day, thedate.hours, thedate.minutes, thedate.seconds));
5846 + x += addDetailItem("Last Boot Up Time", date);
5847 + }
5848 }
5849
5850 // Windows Security Central