mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
blank filling was off by one
leading to jan 1 of next year being included
This commit is contained in:
parent
98a0753eb8
commit
d24f34c238
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ export function renderCalendar(
|
|||
|
||||
// fill in any blanks
|
||||
const startDate = timeYear(nowForYear);
|
||||
for (let i = 0; i < 366; i++) {
|
||||
for (let i = 0; i < 365; i++) {
|
||||
const date = new Date(startDate.getTime() + i * 86400 * 1000);
|
||||
if (date > now) {
|
||||
// don't fill out future dates
|
||||
|
|
Loading…
Reference in a new issue