Skip to content

Commit

Permalink
Holiday calendar not using timezone for start of day
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Blackbourn committed Jul 9, 2023
1 parent e5ae9ef commit 4648811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HolidayCalendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class HolidayCalendar extends WeekendCalendar {

isHoliday(date: Date, tz: Timezone = tzLocal): boolean {
return (
this.isWeekend(date, tz) || this.#holidays.has(startOfDay(date).getTime())
this.isWeekend(date, tz) ||
this.#holidays.has(startOfDay(date, tz).getTime())
)
}
}

0 comments on commit 4648811

Please sign in to comment.