liamcain / obsidian-periodic-notes

Create/manage your daily, weekly, and monthly notes in Obsidian
MIT License
986 stars 67 forks source link

[BUG] ISO Week wrong week number and starting on Sunday #218

Open Araxiel opened 4 months ago

Araxiel commented 4 months ago

As title says, there seem to be two problems with ISO weeks. Current date: June 25, 2024 ISO Week 26 Periodic Note Weekly Note Format Setting: [W]WW-MMM-YYYY

What is the weirdest is that in the little preview, the "Your syntax looks like", it correctly displays W26-Jun-2024 but then when I click on the ribbon button, it wrongly (tries to) creates W25-Jun-2024

Further, it still considers Sunday the first day of the week, even when using WW in the format setting. Even looking at my Windows settings, it is set to first day of the week being Monday.

spiritualgeek commented 4 months ago

This issue has existed for ages, but by a mysterious coincidence today it annoyed me enough to come here and log this issue, but I see you have beat me to it 😄

kaitpw commented 3 months ago

I'm bothered by this same issue as well, I honestly wouldn't mind except for that I'm guessing this throws off the opening current weeks note command. Assuming this is related also - the integration with calendar is just all messed up in general.