-
-
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
Reading mode Date picker (on task query) does not respect first day of week on iPhone (unlike the Edit Task modal date picker, which does) #3239
Comments
Thank you for logging this. Could you please explain what “like task modal” means in the description? |
Ohhhh. I see now. Thank you. |
I’ve edited the title slightly, to match my understanding. |
Lines 29 here is why the Reading Mode date-picker always starts on Monday: obsidian-tasks/src/ui/Menus/DatePicker.ts Lines 23 to 31 in fb324a4
Without that line, it always starts on Sunday, even if the Locale says the week starts on Monday. So that line cannot be removed - instead someone needs to figure out how to make flatpickr automatically set the start of the week correctly. |
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]>
I'm re-opening this, and have renamed it to indicate that the problem now only occurs on iPhone, and likely iPad too. |
Steps to reproduce
Expected Behavior
Date Picker aligns with task modal (and obsidian calendar)
Current behaviour
Date picker starts on Monday regardless
Which Operating Systems are you using?
Obsidian Version
1.7.7
Tasks Plugin Version
7.14.0
Checks
Possible solution
No response
The text was updated successfully, but these errors were encountered: