Skip to content

bug(site): fix past event filtering for same-day events - #179

Open
suejinkim20 wants to merge 1 commit into
stagecc:mainfrom
suejinkim20:bugfix/event-date
Open

suejinkim20 wants to merge 1 commit into
stagecc:mainfrom
suejinkim20:bugfix/event-date

Conversation

@suejinkim20

@suejinkim20 suejinkim20 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Same-day events were being treated as concluded too early because the site compared only the event date, which made events appear past on the day they occurred.

Solution

Updated past-event logic so events stay current through their event day and only move to past status on the following day. Applied the same rule across event detail pages, event listings, the archive, and homepage event selection so behavior stays consistent.

Testing

  • npm test -- src/util/eventDateTime.test.ts
  • npm run build -w @bdc/site

I've also deployed a test branch (not this branch) with an augmented date (shifted wednesday's event to Fri, Oct 16--today) to show this is working.

Note: since this overlaps in fields with the content model PR, I'd recommend doing this one first, then i'll rebase the content model PR on top of this one and readjust the camelCasing and anything else that needs cleaning up

@suejinkim20
suejinkim20 marked this pull request as draft October 14, 2026 13:58
@suejinkim20
suejinkim20 marked this pull request as ready for review October 16, 2026 16:26
@suejinkim20
suejinkim20 requested a review from mbwatson October 16, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant