mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Fix formating in datetime() function
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -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="' +
|
||||||
|
|||||||
Reference in New Issue
Block a user