Skip to content

Commit

Permalink
Fix bug that causes SNF games to be seen as 'early'
Browse files Browse the repository at this point in the history
  • Loading branch information
blchelle committed Sep 30, 2023
1 parent 437961d commit f30d8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ export const getLockedGames = (games: GameData[]): LockedGames => {

const isEarlyGame = (game: Date): boolean => {
// Wednesday - Saturday games are always early
if (game.getDay() >= 3) return true
if (game.getUTCDay() >= 3) return true

// Monday, Tuesday games are never early
if (game.getDay() >= 1) return false
if (game.getUTCDay() >= 1) return false

// Sunday games are early if they're expected to finish before 17:00 UTC
// This is particularly important for games in Europe which typically start 3.5 hours before
Expand Down

0 comments on commit f30d8f3

Please sign in to comment.