Fix time/date style on settings page

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-11-09 14:49:22 +01:00
committed by Adam Warner
parent ee3a2f47c2
commit f9bc9e4ad6

View File

@@ -264,7 +264,7 @@ function updateFtlInfo() {
$("#sysinfo-pid-ftl").text(ftl.pid);
const startdate = luxon.DateTime.now()
.minus({ milliseconds: ftl.uptime })
.toFormat("dddd, MMMM Do YYYY, HH:mm:ss");
.toFormat("cccc, LLLL d yyyy, TT");
$("#sysinfo-uptime-ftl").text(startdate);
$(".destructive_action").prop("disabled", !ftl.allow_destructive);
@@ -371,9 +371,7 @@ 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("dddd, MMMM Do YYYY, HH:mm:ss");
const startdate = luxon.DateTime.now().minus({ seconds: system.uptime }).toFormat("cccc, LLLL d yyyy, TT");
$("#status").prop(
"title",
"System uptime: " +