diff --git a/packages/@mantine/dates/src/components/Month/get-month-days/get-month-days.ts b/packages/@mantine/dates/src/components/Month/get-month-days/get-month-days.ts index 4657514307..fc8fe8a721 100644 --- a/packages/@mantine/dates/src/components/Month/get-month-days/get-month-days.ts +++ b/packages/@mantine/dates/src/components/Month/get-month-days/get-month-days.ts @@ -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).startOf('day'); const startOfMonth = start.toDate(); const endOfMonth = start.add(+start.daysInMonth() - 1, 'day').toDate(); const endDate = getEndOfWeek(endOfMonth, firstDayOfWeek);