vipzhicheng / logseq-plugin-block-calendar

A block calendar for Logseq.
MIT License
39 stars 13 forks source link

fix: january bug #37

Closed stdword closed 9 months ago

stdword commented 10 months ago

Fixing these issue #36

Problem in parseYearMonth function. It is became visible in January:

> (isInteger(month) ? Number(month) - 1 : now?.getMonth()) || null
null
> (isInteger(month) ? Number(month) - 1 : now?.getMonth()) ?? null
0
douglascamata commented 10 months ago

@vipzhicheng could you have a look at this, please?

vipzhicheng commented 9 months ago

Thx @stdword

douglascamata commented 9 months ago

@vipzhicheng thanks for your time and such useful plugin