From cc015406130abced629c93f0511f6a51517023d1 Mon Sep 17 00:00:00 2001 From: Brittany Ellich Date: Fri, 17 Apr 2026 14:36:30 -0700 Subject: [PATCH] Fix event times and links --- src/components/EventCard.astro | 4 +++- src/components/Header.astro | 12 ++++++------ src/layouts/Base.astro | 31 +++++++++++++++++++++++++++++-- src/pages/about.astro | 2 +- src/pages/index.astro | 6 +++--- 5 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/components/EventCard.astro b/src/components/EventCard.astro index 4ca0483..341bfd7 100644 --- a/src/components/EventCard.astro +++ b/src/components/EventCard.astro @@ -17,10 +17,12 @@ const formattedDate = eventDate.toLocaleDateString('en-US', { weekday: 'short', month: 'short', day: 'numeric', + timeZone: 'UTC', }); const formattedTime = eventDate.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit', + timeZone: 'UTC', }); const modeLabel = mode === 'online' ? 'Online' : mode === 'hybrid' ? 'Hybrid' : location ?? 'In Person'; @@ -33,7 +35,7 @@ const sourceLabel = source ? `@${source.replace(/\.bsky\.social$/, '')}` : undef

- +

{name}

{description &&

{description}

} diff --git a/src/components/Header.astro b/src/components/Header.astro index f83a7bb..4bc75a0 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,10 +1,10 @@ --- const navLinks = [ - { href: `${import.meta.env.BASE_URL}/`, label: 'Home' }, - { href: `${import.meta.env.BASE_URL}/about`, label: 'About' }, - { href: `${import.meta.env.BASE_URL}/community-content`, label: 'Content' }, - { href: `${import.meta.env.BASE_URL}/events`, label: 'Events' }, - { href: `${import.meta.env.BASE_URL}/communities`, label: 'Communities' }, + { href: '/', label: 'Home' }, + { href: '/about', label: 'About' }, + { href: '/community-content', label: 'Content' }, + { href: '/events', label: 'Events' }, + { href: '/communities', label: 'Communities' }, ]; const currentPath = Astro.url.pathname; @@ -12,7 +12,7 @@ const currentPath = Astro.url.pathname;