From 1939399d5c31ae91a467814bece56a02b855d61f Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 12 Jan 2024 21:39:24 +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 a3b6ead..f7929ec 100644 --- a/layouts/admin/list.html +++ b/layouts/admin/list.html @@ -145,7 +145,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)) : "")) ) ) )