From 2175e30325cf6034ed9331325b7027b984464b47 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 10 Oct 2024 12:06:42 -0700 Subject: [PATCH] fix: Use ISO date format --- src/lib/components/PostHeader.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/PostHeader.svelte b/src/lib/components/PostHeader.svelte index 5546dcc..f8d78ce 100644 --- a/src/lib/components/PostHeader.svelte +++ b/src/lib/components/PostHeader.svelte @@ -3,7 +3,7 @@ export let metadata : { title: string, description: string, tags: [string], date: Date }; export let link: Option = null; - const date = metadata.date.toLocaleDateString(); + const date = metadata.date.toISOString().slice(0,-14);