-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: date picker in Reading mode & searches honours first day of week #3259
Conversation
|
Thank you - I've edited the description to say that it fixes #3239. |
Tested on macOS 15.1.1 (24B2091)
The date-picker in Reading view and Tasks search results then switched to starting the week on Sunday! |
Many thanks for doing this @esm7! 🎉 ❤️ |
Many thanks for the date picker, it's the most important feature I had no clue I needed so much! ❤️ |
This fixes #3341. Note that the date picker in Reading Mode and Tasks query Results remains hard-coded to start on Monday, because it turned out that the code added in #3259 to address #3239 works well on Android, but gave an error on iPhone (and probably iPad too). Thanks to @esm7 for suggesting the fix. Co-Authored-By: esm7 <[email protected]>
Types of changes
Changes visible to users:
fix
- non-breaking change which fixes an issue)Description
The new date picker is an awesome, super useful addition. But the way it was introduced, it was hard-coded for the week to start on Monday, which is not the case for many users. This fix tries to query the system's locale for the correct day of the week, and uses Monday only if no such information is available.
Motivation and Context
As described above.
Fixes #3239.
How has this been tested?
Tested on the latest Obsidian Desktop and Android app.
Screenshots (if appropriate)
Checklist
yarn run lint
.Terms