YukiGasai / obsidian-todo-widget

Android Widget to display todo list from markdown file
Apache License 2.0
86 stars 5 forks source link

Week number issue (Periodic Notes vs Widget) #13

Open jamie9090 opened 10 months ago

jamie9090 commented 10 months ago

Right now, Obsidian's Periodic Notes and online websites say it's currently week 43, whereas widget says week 44 with {{w}} formatting.

I'm using English AU date locale in periodic notes. Could this be causing a mismatch between Weeks as recorded in the widget VS Obsidian?

Any way for me to adjust that here? Alternatively I can try change in Obsidian side if you can shed any light 😁

YukiGasai commented 10 months ago

Hi, the app is using the native Datetimeformatter from Java 8. Here are the options. I tried it and for me the week number is 43. There may be a small issue with times zones here. For me, the week always starts on Monday. Where are you from?

jamie9090 commented 10 months ago

I'm in Australia. Tried again today as it's Monday. Our week starts Monday as well.

Getting week 45 in the widget.

Obsidian which is set to same time zone says week 44.