From 5921a10d2e2367b16798b838372060b761fbe8d1 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 16 Mar 2026 11:06:41 +0100 Subject: [PATCH] fix: format document date with Intl API (20. Dezember 2026) Use Intl.DateTimeFormat with de-DE locale to show full German month name. Appending T12:00:00 to the ISO string avoids UTC-midnight timezone shifts misrendering the day. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/routes/documents/[id]/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/documents/[id]/+page.svelte b/frontend/src/routes/documents/[id]/+page.svelte index a9c32d22..b91bb794 100644 --- a/frontend/src/routes/documents/[id]/+page.svelte +++ b/frontend/src/routes/documents/[id]/+page.svelte @@ -151,7 +151,7 @@
- {doc.documentDate ? doc.documentDate.split('-').reverse().join('.') : '—'} + {doc.documentDate ? new Intl.DateTimeFormat('de-DE', { day: 'numeric', month: 'long', year: 'numeric' }).format(new Date(doc.documentDate + 'T12:00:00')) : '—'} Dokumentendatum