From 095edfe06d7d251f608dcf05b7f0a48397c84430 Mon Sep 17 00:00:00 2001 From: Luca <102960244+Luca-Timo@users.noreply.github.com> Date: Tue, 2 Jun 2026 10:04:23 +0200 Subject: [PATCH] fix(bills): localize the event_date on the invoice detail card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Anlass field rendered inv.eventDate verbatim (raw ISO from pg date-as-Date serialization) while every other date on the card went through useLocalizedDate. Route it through fmtDate so it honors the general_date_format setting. (The event_id → /admin/events linkify was already in place.) --- frontend/src/pages/admin/bills/BillDetailPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/admin/bills/BillDetailPage.tsx b/frontend/src/pages/admin/bills/BillDetailPage.tsx index cfdd0ece..37e960cf 100644 --- a/frontend/src/pages/admin/bills/BillDetailPage.tsx +++ b/frontend/src/pages/admin/bills/BillDetailPage.tsx @@ -391,7 +391,7 @@ export const BillDetailPage: React.FC = () => { {inv.eventId ? ( {inv.eventName} ) : inv.eventName} - {inv.eventDate ? ` · ${inv.eventDate}` : ''} + {inv.eventDate ? ` · ${fmtDate(inv.eventDate)}` : ''} )}