fantasycalendar / obsidian-fantasy-calendar

MIT License
176 stars 8 forks source link

Saving Event to Note stores date incorrectly #57

Open namtrah opened 2 years ago

namtrah commented 2 years ago

I have used the UI to create an event in the Exandrian Calendar. The date saved was reoccurring and was the 13th day of Quen'pillar of the year 807.

It was linked to a specific Note and saved with a name.

When I turned on the option "Write event date to Frontmatter" it saves the date as follows: fc-date: 814-8-13, which is one month earlier (Fessuran).

Azurewren commented 2 years ago

I have noticed in the static.months array, it numbers the months starting at 0 instead of 1. Could this be the cause of it listing the month number as 1 month earlier?

TacoV commented 1 year ago

I think this is related to issue #107 (or even indentical?).

Either way, the generation of frontmatter dates is not in line with the interpretation of frontmatter dates - indeed due to array numbering.