Skip to content

Commit 871aecf

Browse files
committed
🐛 Fix missing days from last months
1 parent 5f4b50c commit 871aecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-chayns-calendar/component/MonthTable.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default class MonthTable extends PureComponent {
9696
} else {
9797
for (let j = 6; j > 0; j -= 1) {
9898
_row.push({
99-
date: new DateStorage.From(startDate.getFullYear(), startDate.getMonth(), startDate.getDay() - j),
99+
date: new DateStorage.From(startDate.getFullYear(), startDate.getMonth(), startDate.getDate() - j),
100100
inMonth: false,
101101
});
102102
}

0 commit comments

Comments
 (0)