liamcain / obsidian-calendar-plugin

Simple calendar widget for Obsidian.
MIT License
1.57k stars 132 forks source link

Current month shown in Calendar, however opens previous months daily notes #184

Open drezha opened 3 years ago

drezha commented 3 years ago

Before Submitting: Double-check that you are running the latest version of the plugin. The bug might have already been fixed 😄

Describe the bug

As we've moved from May to June, my calendar is showing June dates, but clicking the dates links to the existing May notes. My daily notes are using the custom date format YYYY/MM/DD.

Manually creating a file creates the file, but then clicking the day on the calendar only takes you to the previous months item.

Daily note is only a single line of code to add the date. # {{date:dddd, DD MMM YYYY}}

Steps to reproduce

  1. Move to the next month after completing items during the month before.
  2. Clicking an item opens up the item from the previous month.

Expected behavior

It is is expected that the calendar doesn't show any notes for the days in the month that haven't had a note created yet and that clicking the date opens the daily note for that day.

Screenshots

Screenshot 2021-06-01 at 20 39 32 Screenshot 2021-06-01 at 20 43 51

Environment (please specify)

OS

Windows and macOS tested.

Obsidian Version (e.g. v0.10.6)

0.12.3

Theme (if applicable):

Blue Topaz (but appears to be non theme related, as same issue on other themes)

vitaminj commented 3 years ago

I have this too, I make the daily notes plugin create a folder per month and then daily numbered notes inside that, so the "Date format" is "YYYY-MM/DD-ddd" and I think the presence of nested folders is probably what's causing the problem for both myself and @drezha