From fcb2088cd7ec58504b7117a53b1bb48375c8982f Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 13 Dec 2023 09:10:37 +0100 Subject: [PATCH] layouts/admin/list.html aktualisiert --- layouts/admin/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/admin/list.html b/layouts/admin/list.html index d8e546a..eece0cc 100644 --- a/layouts/admin/list.html +++ b/layouts/admin/list.html @@ -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)) : "")) ) ) )