fix: format person document list dates with Intl API (20. Dezember 2026)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-03-16 15:48:06 +01:00
parent d5d882fe88
commit c4806474df

View File

@@ -220,7 +220,7 @@
{doc.title || doc.originalFilename}
</div>
<div class="flex items-center text-xs font-sans text-gray-500 mt-0.5 space-x-2">
<span>{doc.documentDate || 'Kein Datum'}</span>
<span>{doc.documentDate ? new Intl.DateTimeFormat('de-DE', { day: 'numeric', month: 'long', year: 'numeric' }).format(new Date(doc.documentDate + 'T12:00:00')) : 'Kein Datum'}</span>
{#if doc.location}
<span class="text-brand-mint"></span>
<span>{doc.location}</span>