obsidian-calendar-plugin
obsidian-calendar-plugin copied to clipboard
Days shifted after changing "Start week on:" (fixed after reload/restart)
Before Submitting: Double-check that you are running the latest version of the plugin. The bug might have already been fixed 😄
Describe the bug
When changing the "Start week on" option, the days of the week will be shifted by one. Restarting or reloading Obsidian fixes the issue.
Steps to reproduce
- In the calendar, navigate to January 2022. Note that January 1 is a Saturday.
- Go to Settings -> Calendar
- Change the 'Start week on' option ie. from Monday to Sunday
- Error: The days of the week are shifted by one. January 1 now appears to start on Friday.
- Reloading (or restarting) obsidian fixes that. The year starts on Saturday again.
Note that I'm using 'de' as my locale.
Expected behavior
The calendar should change immediately without restarting or reloading obsidian.
Screenshots
Apple Calendar as a reference:
January 1 is a Saturday
Initial situation (locale: de, start week on locale default (mondays)):
January 1 is a Saturday (correct)
Changing 'Start week on' to Sunday ('Sonntag'):
January 1 appears to be a Friday (wrong)
Environment
OS
macOS
Obsidian Version
v0.14.6