Skip to content

Fix outdated holidays on DaySelect calendar (#327)#341

Open
ronaldmilgo wants to merge 1 commit intoYaleComputerSociety:mainfrom
ronaldmilgo:fix/outdated-holidays-327
Open

Fix outdated holidays on DaySelect calendar (#327)#341
ronaldmilgo wants to merge 1 commit intoYaleComputerSociety:mainfrom
ronaldmilgo:fix/outdated-holidays-327

Conversation

@ronaldmilgo
Copy link
Collaborator

Holidays were hardcoded for 2000, so floating and academic holidays showed on the wrong days in other years.

  • New holidays.ts: Year-aware logic for federal holidays (fixed + floating: MLK, Memorial Day, Labor Day, Thanksgiving, Good Friday, Juneteenth) and Yale academic breaks (Oct/Nov/Spring) from the official calendar.

  • CircleComponent now uses getHolidayForDate(date) so each day is evaluated for the correct year.

Holidays on the calendar now match the correct dates for the year being viewed.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Collaborator

@jeet-parikh jeet-parikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing Ronald. The dynamic holiday generation works great!

Quick change - It seems like the Yale breaks (Fall, November, Spring) don't match up with the official dates.
Can you double check and make sure they align with the information on this page: https://yalecollege.yale.edu/academics/academic-calendar/future-and-future-provisional-academic-calendars

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.

2 participants