This commit is contained in:
Mateusz Gruszczyński committed 2026-10-06 10:16:16 +02:00
1 parent 32e6875980
commit cf25423dde
68 files changed
+2314 -422

No files matched your search

+4 -2
View File
@@ -1,7 +1,9 @@
let configHistoryEntries = [], configHistorySelectedRevision = null;
function historyDate(value, options = {}) {
try { return new Intl.DateTimeFormat(locale(), options).format(new Date(Number(value) * 1000)); }
catch { return new Date(Number(value) * 1000).toLocaleString(); }
const effective = { ...options };
if (Object.hasOwn(effective, "timeStyle") || Object.hasOwn(effective, "hour")) effective.hour12 = (adminPreferences?.time_format || "24h") === "12h";
try { return new Intl.DateTimeFormat(locale(), effective).format(new Date(Number(value) * 1000)); }
catch { return formatDateTime(Number(value) * 1000); }
}
function historyDayKey(value) {
const date = new Date(Number(value) * 1000);