Fix formating in datetime() function

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-11-09 15:26:55 +01:00
committed by Adam Warner
parent f9bc9e4ad6
commit 50c44cfbe2

View File

@@ -153,7 +153,7 @@ function datetime(date, html, humanReadable) {
} }
const format = const format =
html === false ? "Y-MM-DD HH:mm:ss z" : "Y-MM-DD [<br class='hidden-lg'>]HH:mm:ss z"; 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(); const timestr = luxon.DateTime.fromMillis(Math.floor(date)).toFormat(format).trim();
return humanReadable return humanReadable
? '<span title="' + ? '<span title="' +