mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
@@ -371,7 +371,9 @@ function updateSystemInfo() {
|
||||
$("#sysinfo-cpu-ftl").text("(" + system.ftl["%cpu"].toFixed(1) + "% used by FTL)");
|
||||
$("#sysinfo-ram-ftl").text("(" + system.ftl["%mem"].toFixed(1) + "% used by FTL)");
|
||||
|
||||
const startdate = luxon.DateTime.now().minus({ seconds: system.uptime }).toFormat("cccc, LLLL d yyyy, TT");
|
||||
const startdate = luxon.DateTime.now()
|
||||
.minus({ seconds: system.uptime })
|
||||
.toFormat("cccc, LLLL d yyyy, TT");
|
||||
$("#status").prop(
|
||||
"title",
|
||||
"System uptime: " +
|
||||
|
||||
@@ -152,8 +152,7 @@ function datetime(date, html, humanReadable) {
|
||||
return "Never";
|
||||
}
|
||||
|
||||
const format =
|
||||
html === false ? "y-MM-dd TTT" : "y-MM-dd<br class='hidden-lg'> TTT";
|
||||
const format = html === false ? "y-MM-dd TTT" : "y-MM-dd<br class='hidden-lg'> TTT";
|
||||
const timestr = luxon.DateTime.fromMillis(Math.floor(date)).toFormat(format).trim();
|
||||
return humanReadable
|
||||
? '<span title="' +
|
||||
|
||||
Reference in New Issue
Block a user