Skip to content

Commit f897303

Browse files
committed
Fix time/date style on settings page
Signed-off-by: yubiuser <[email protected]>
1 parent 49b9bb9 commit f897303

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/js/footer.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function updateFtlInfo() {
264264
$("#sysinfo-pid-ftl").text(ftl.pid);
265265
const startdate = luxon.DateTime.now()
266266
.minus({ milliseconds: ftl.uptime })
267-
.toFormat("dddd, MMMM Do YYYY, HH:mm:ss");
267+
.toFormat("cccc, LLLL d yyyy, TT");
268268
$("#sysinfo-uptime-ftl").text(startdate);
269269

270270
$(".destructive_action").prop("disabled", !ftl.allow_destructive);
@@ -371,9 +371,7 @@ function updateSystemInfo() {
371371
$("#sysinfo-cpu-ftl").text("(" + system.ftl["%cpu"].toFixed(1) + "% used by FTL)");
372372
$("#sysinfo-ram-ftl").text("(" + system.ftl["%mem"].toFixed(1) + "% used by FTL)");
373373

374-
const startdate = luxon.DateTime.now()
375-
.minus({ seconds: system.uptime })
376-
.toFormat("dddd, MMMM Do YYYY, HH:mm:ss");
374+
const startdate = luxon.DateTime.now().minus({ seconds: system.uptime }).toFormat("cccc, LLLL d yyyy, TT");
377375
$("#status").prop(
378376
"title",
379377
"System uptime: " +

0 commit comments

Comments
 (0)