From c70c30813f206b32782002551e1e99441bb4b59f Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Thu, 23 Feb 2023 16:26:56 +0100 Subject: [PATCH] fix date --- static/admin/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/admin/index.html b/static/admin/index.html index 3e702881..671d21ab 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -622,8 +622,8 @@ entry.data.author ), h('li', { className: "list-inline-item mr-4 mb-3 mb-md-0 text-light" }, - h('span', { className: "font-weight-bold mr-2"}, "Datum:"), - Intl.DateTimeFormat('de-De', { day: 'numeric', month: 'short', year: 'numeric'}).format(new Date(entry.data.date)) + h('span', { className: "font-weight-bold mr-2"}, "Datum:"), entry.data.date ? + Intl.DateTimeFormat('de-De', { day: 'numeric', month: 'short', year: 'numeric'}).format(new Date(entry.data.date)) : "" ), h('li', { className: "list-inline-item mr-4 mb-3 mb-md-0 text-light" }, h('span', { className: "font-weight-bold mr-2"}, "Kategorie:"),