From 718760ce4de5d9a95609fa33c5f08c5db54526ee Mon Sep 17 00:00:00 2001 From: Jack Hall Date: Mon, 30 Mar 2026 09:08:41 -0500 Subject: [PATCH] fix: event date off by one day in events list Parse date string with local timezone constructor instead of new Date("YYYY-MM-DD") which parses as UTC midnight and displays as the previous day in US timezones. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/pages/app/events.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/app/events.astro b/src/pages/app/events.astro index fa04d24..9883fc6 100644 --- a/src/pages/app/events.astro +++ b/src/pages/app/events.astro @@ -141,7 +141,8 @@ const description = "View and RSVP to upcoming events"; if (!container) return; const eventsHTML = events.map((event) => { - const eventDate = new Date(event.date); + const [yr, mo, dy] = event.date.split("-").map(Number); + const eventDate = new Date(yr, mo - 1, dy); const formattedDate = eventDate.toLocaleDateString("en-US", { weekday: "short", year: "numeric",