Changes to UI and other stuff

This commit is contained in:
Simon Pocrnjič
2025-11-20 18:11:43 +01:00
parent b7fa2d261b
commit 3b284fa4bd
87 changed files with 7872 additions and 2330 deletions
+19
View File
@@ -0,0 +1,19 @@
export function fmtDateTime(d) {
if (!d) return "";
try {
const dt = new Date(d);
const datePart = dt.toLocaleDateString("sl-SI", {
year: "numeric",
month: "2-digit",
day: "2-digit",
});
const timePart = dt.toLocaleTimeString("sl-SI", {
hour: "2-digit",
minute: "2-digit",
hour12: false,
});
return `${datePart} ${timePart}`;
} catch (e) {
return String(d);
}
};