From 4c6b97c9bee8ab358ff209124bfe326a3cd1ae96 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Fri, 14 Mar 2025 03:19:40 +0100 Subject: [PATCH] Format event date as DD.MM.YYYY on the dashboard. Updated the event date formatting logic to display dates in the DD.MM.YYYY format (used in the RSVP section). This improves consistency and aligns with user expectations for date representation. --- frontend/src/app/(main)/dashboard/events/[slug]/page.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/(main)/dashboard/events/[slug]/page.tsx b/frontend/src/app/(main)/dashboard/events/[slug]/page.tsx index 2e9ae0e..e5b9637 100644 --- a/frontend/src/app/(main)/dashboard/events/[slug]/page.tsx +++ b/frontend/src/app/(main)/dashboard/events/[slug]/page.tsx @@ -177,7 +177,13 @@ export default function EventDetailPage() { className="bg-yellow-50 text-yellow-700 border-yellow-200" > RSVP by{" "} - {new Date(event.rsvp_deadline).toLocaleDateString()} + {new Date(event.event_date) + .toLocaleDateString("en-GB", { + day: "2-digit", + month: "2-digit", + year: "numeric", + }) + .replace(/\//g, ".")} )}