Skip to content

Commit

Permalink
fix: freezing date on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
kingflamez committed Jan 31, 2025
1 parent 114d349 commit cc22924
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getMonthDays({
consistentWeeks,
}: GetMonthDaysInput): Date[][] {
const day = dayjs(month).subtract(dayjs(month).date() - 1, 'day');
const start = dayjs(day.format('YYYY-M-D'));
const start = dayjs(day);
const startOfMonth = start.toDate();
const endOfMonth = start.add(+start.daysInMonth() - 1, 'day').toDate();
const endDate = getEndOfWeek(endOfMonth, firstDayOfWeek);
Expand Down

0 comments on commit cc22924

Please sign in to comment.