Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

hackathon end_date (#30976)

Francesco Sansalvadore17c8741c600a
diff --git a/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx b/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx
index e157238987a..effaa8e9572 100644
--- a/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx
+++ b/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx
@@ -6,6 +6,7 @@ meta_description: 'Build an Open Source Project over 10 days. 5 prize categories
type: 'hackathon'
onDemand: false
date: '2024-12-06T09:00:00.000-07:00'
+end_date: '2024-12-16T00:00:00.000-07:00'
timezone: 'America/Los_Angeles'
duration: '10 days'
categories:
diff --git a/apps/www/pages/events/index.tsx b/apps/www/pages/events/index.tsx
index 4842c8ac898..9b5f4bfef09 100644
--- a/apps/www/pages/events/index.tsx
+++ b/apps/www/pages/events/index.tsx
@@ -155,7 +155,9 @@ export async function getStaticProps() {
}) as BlogPost[]
const allEvents = [...staticEvents, ...meetupEvents]
- const upcomingEvents = allEvents.filter((event: BlogPost) => new Date(event.date!) >= new Date())
+ const upcomingEvents = allEvents.filter((event: BlogPost) =>
+ event.end_date ? new Date(event.end_date!) >= new Date() : new Date(event.date!) >= new Date()
+ )
const onDemandEvents = allEvents.filter(
(event: BlogPost) => new Date(event.date!) < new Date() && event.onDemand === true
)