Skip to content

Move season start to the Wednesday following Labor Day - #62

Closed
gansel51 wants to merge 1 commit into
nflverse:mainfrom
gansel51:wednesday-season-start
Closed

gansel51 wants to merge 1 commit into
nflverse:mainfrom
gansel51:wednesday-season-start

Conversation

@gansel51

@gansel51 gansel51 commented Sep 9, 2026 •

Copy link
Copy Markdown

2026 opens on Wednesday Sept 9 (NE @ SEA) instead of the usual Thursday, so get_current_season() and get_current_week() would both have rolled over a day late.

The boundary is on the Wednesday for every season, not just 2026. It lands on a no-game day whether the opener is Wednesday or Thursday, so week numbers work out either way — I ran the 2015-2025 schedules through it and got the right week for all but one of 2895 regular season games (2020-12-02, which really was a rescheduled Wednesday game).

Meant to address #60

Sanity checks against real schedule data:

date season week
Tue Sep 8 2026 2025 —
Wed Sep 9 2026 (opener) 2026 1
Tue Sep 15 2026 1
Wed Sep 16 2026 2

The 2026 season opens Wednesday Sept 9 (NE @ SEA) rather than the usual
Thursday, so get_current_season() and get_current_week() would both have
been a day late rolling over.

get_current_week(use_date=True) was also using a different definition of
the season start than get_current_season(): the first Thursday in
September rather than the Thursday following Labor Day. Those coincide
some years but not in 2026 (Sept 2 vs Sept 9), which would have reported
opening day as week 2 and left every later week off by one. Both now
share a single _season_start() helper.

The boundary sits on the Wednesday for every season, not just 2026. It
lands on a no-game day whether the season opens Wednesday or Thursday, so
week numbering stays correct either way - replaying the 2015-2025
schedules through it reproduces the right week for all but one of 2895
regular season games (2020-12-02, a genuinely rescheduled Wednesday
game).

Adds tests/test_utils_date.py covering the rollover boundary, week
numbering, and the March 15 roster flip without touching the network.
@mrcaseb

mrcaseb commented Sep 9, 2026

Copy link
Copy Markdown
Member

Duplicate of #61

@mrcaseb mrcaseb marked this as a duplicate of #61 Sep 9, 2026
@gansel51

gansel51 commented Sep 9, 2026

Copy link
Copy Markdown
Author

Duplicate of #61

Ah sweet, didn't see that. Will #61 be merged soon?

@gansel51 gansel51 closed this Sep 9, 2026
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