Skip to content

Commit

Permalink
Merge pull request #21 from calendar-it/bug.getDateRangeInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
timfee committed Jan 23, 2024
2 parents ae67dde + b40e07f commit 3e9d38f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/availability/date/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function Calendar({
const { start: startDate, end: endDate } = getDateRangeInterval({
start,
end,
timeZone: "Etc/GMT",
})

// Handles when the date changes due to the selected timezone
Expand All @@ -32,7 +33,7 @@ export default function Calendar({
// an incomplete row.
end: endOfWeek(addDays(endDate, 2)),
}).map((day) => Day.dayFromDate(day))

// Remove cases where the first week is empty.
// (Usually timezone changing related)
const firstWeek = days.at(6)
Expand Down

0 comments on commit 3e9d38f

Please sign in to comment.