From 1f5e252b2bde006697194772e1be5115455ecbf7 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 20 Nov 2023 23:32:14 +0100 Subject: [PATCH] fix created at display --- src/routes/(rezepte)/rezepte/[name]/+page.svelte | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/routes/(rezepte)/rezepte/[name]/+page.svelte b/src/routes/(rezepte)/rezepte/[name]/+page.svelte index 98f2569..aea336e 100644 --- a/src/routes/(rezepte)/rezepte/[name]/+page.svelte +++ b/src/routes/(rezepte)/rezepte/[name]/+page.svelte @@ -58,7 +58,7 @@ placeholder_src = "https://bocken.org/static/rezepte/placeholder/" + data.short_name + ".webp" season_iv = season_intervals(); }) - let display_date = new Date(data.createdAt); + let display_date = new Date(data.dateCreated); if (data.updatedAt){ display_date = new Date(data.updatedAt); } @@ -290,11 +290,7 @@ h4{ {@html data.addendum} {/if} - {#if data.updatedAt} -

Letzte Ă„nderung: {formatted_display_date}

- {:else} -

Erstellt am: {formatted_display_date}

- {/if} +

Letzte Ă„nderung: {formatted_display_date}