layouts/admin/list.html aktualisiert
All checks were successful
schuelerzeitung-prod / prod-build (push) Successful in 4s
schuelerzeitung-prod / test-build (push) Successful in 1s

This commit is contained in:
Denys Konovalov 2023-12-13 09:10:37 +01:00
parent d6f4ff2c86
commit fcb2088cd7

@ -106,7 +106,7 @@
),
h("footer", { className: "article-time" },
h("div", {},
h("time", { className: "article-time--published" }, (entry.data.date != "" ? new Intl.DateTimeFormat("de-DE", {dateStyle: "long"}).format(new Date(entry.data.date)) : ""))
h("time", { className: "article-time--published" }, ((entry.data.date != null && entry.data.date != "") ? new Intl.DateTimeFormat("de-DE", {dateStyle: "long"}).format(new Date(entry.data.date)) : ""))
)
)
)