Skip to content

Commit

Permalink
Account for daylight savings for early game calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
blchelle committed Nov 17, 2023
1 parent c5c294f commit 9a23f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const isEarlyGame = (game: Date): boolean => {
// the morning waves of games in the US.
//
// The average nfl game takes 3 hours and 12 minutes, so we'll say 3 hours 20 minutes to be safe.
return game.getUTCHours() + (game.getUTCMinutes() / 60) + 3 + (20 / 60) < 17
return game.getUTCHours() + (game.getUTCMinutes() / 60) + 3 + (20 / 60) < 18
}

export const getMaxPoints = (numGames: number): number => {
Expand Down

0 comments on commit 9a23f96

Please sign in to comment.