dhruvik7 / obsidian-daily-stats

Plugin to view your daily word count across all notes in your Obsidian.md vault.
94 stars 15 forks source link

data.json saves the month wrong #23

Open jenniNelson opened 1 year ago

jenniNelson commented 1 year ago

The data.json saves, for example, October 3rd 2022 (2022/10/3) as 2022/9/3. And January 1st 2023 as 2023/0/1. This is because the Date getMonth method returns a zero-indexed number meant for accessing date names from an array.

The plugin is still functional, but trying to export the dates into a spreadsheet won't work without manually correcting the dates.

Kuiriel commented 1 year ago

Just noticed this while trying to use dropbox to fill in missing months of data on the calendar display. Looks like plug in not in active development though.

What will this do to the 31st of a month with only 30 days? It seems to work normally and just presumes September has 31 days.