From e35821a0c3067dae52a4587b7793a4c0099dbc3f Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 14 Sep 2020 08:47:49 -0700 Subject: [PATCH] Fix calendar starting day. --- components/common/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/common/Calendar.js b/components/common/Calendar.js index d9c281d3..9ad1be88 100644 --- a/components/common/Calendar.js +++ b/components/common/Calendar.js @@ -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();