fix: Use ISO date format

This commit is contained in:
Leni Aniva 2024-10-10 12:06:42 -07:00
parent 22787eceda
commit 2175e30325
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
export let metadata : { title: string, description: string, tags: [string], date: Date }; export let metadata : { title: string, description: string, tags: [string], date: Date };
export let link: Option<string> = null; export let link: Option<string> = null;
const date = metadata.date.toLocaleDateString(); const date = metadata.date.toISOString().slice(0,-14);
</script> </script>
<div id="post-heading"> <div id="post-heading">