Fix tests

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-11-09 16:10:53 +01:00
committed by Adam Warner
parent a79dfc8296
commit 66f0ef08ce
2 changed files with 4 additions and 3 deletions

View File

@@ -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: " +

View File

@@ -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="' +