Browse Source

Fix calendar starting day.

master
Mike Cao 1 year ago
parent
commit
e35821a0c3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/common/Calendar.js

+ 1
- 1
components/common/Calendar.js View File

@ -105,7 +105,7 @@ export default function Calendar({ date, minDate, maxDate, onChange }) {
const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
const startWeek = startOfWeek(date);
const startMonth = startOfMonth(date);
const startDay = subDays(startMonth, startMonth.getDay() + 1);
const startDay = subDays(startMonth, startMonth.getDay());
const month = date.getMonth();
const year = date.getFullYear();


Loading…
Cancel
Save