Skip to content

Commit ee0a5d3

Browse files
authored
Merge pull request #139 from lfester/fix/missing-days-from-last-month
Fix missing days from last months
2 parents 6569d7a + 871aecf commit ee0a5d3

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)