diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 849fe795..55c1be94 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -5,6 +5,7 @@ import TagInput from '$lib/components/TagInput.svelte'; import { slide } from 'svelte/transition'; import { untrack } from 'svelte'; import { m } from '$lib/paraglide/messages.js'; +import { formatDate } from '$lib/utils/date'; let { data } = $props(); @@ -240,7 +241,7 @@ $effect(() => {
- {doc.documentDate ? new Intl.DateTimeFormat('de-DE', { day: 'numeric', month: 'long', year: 'numeric' }).format(new Date(doc.documentDate + 'T12:00:00')) : '—'} + {doc.documentDate ? formatDate(doc.documentDate) : '—'}
{#if doc.location}
diff --git a/frontend/src/routes/conversations/+page.svelte b/frontend/src/routes/conversations/+page.svelte index a22c2881..775649a1 100644 --- a/frontend/src/routes/conversations/+page.svelte +++ b/frontend/src/routes/conversations/+page.svelte @@ -3,6 +3,7 @@ import PersonTypeahead from '$lib/components/PersonTypeahead.svelte'; import { untrack } from 'svelte'; import { m } from '$lib/paraglide/messages.js'; + import { formatDate } from '$lib/utils/date'; let { data } = $props(); @@ -231,7 +232,7 @@ : 'text-gray-500'}" > - {doc.documentDate ? new Intl.DateTimeFormat('de-DE', { day: 'numeric', month: 'long', year: 'numeric' }).format(new Date(doc.documentDate + 'T12:00:00')) : '—'} + {doc.documentDate ? formatDate(doc.documentDate) : '—'} {#if doc.location} diff --git a/frontend/src/routes/documents/[id]/+page.svelte b/frontend/src/routes/documents/[id]/+page.svelte index 35556a13..a9903485 100644 --- a/frontend/src/routes/documents/[id]/+page.svelte +++ b/frontend/src/routes/documents/[id]/+page.svelte @@ -1,5 +1,6 @@