Make a configurable option to select what day is the first day of the week. This is different around the world, and the current setup in the date picker isn’t good for pretty much anyone except Americans.
It currently displays Sunday as the first day of the week. In Europe (and many other parts of the world), Monday is the first day of the week.
An option to select this would save me and other non-American users from clicking on the wrong day because of how the date picer calendar is formatted.
V-Calender, which this plugin uses, does support setting first day of week (see Defaults | V-Calendar). The plugin “just” needs an interface to let the user set their preference.
I notice now, that when using LS in German, the calendar is localised with Monday as first day of the week:
Thanks for the info, unfortunately this isn’t the case for me!?
Are you using the desktop version? (I am using Logseq v0.3.7, desktop, windows, language=“Deutsch”).
Surprise – there is a setting! I found it when browsing the source code on Github. Here you go. Add the following lines to the options in your config.edn (you can open the config file via the settings menu):
@ipetter@jllailes sorry, but for me this doesn’t work. I put that start-of-the-week 0 setting in my config-file, but the datepicker still starts with Sunday (v0.7.4 on Windows 10, German) re-index and restart didn’t help
Make sure it is not already in the config file somewhere else.
In the current iteration of the config file it is already added.
This is what it looks like for me:
;; Specify the date on which the week starts.
;; Goes from 0 to 6 (Monday to Sunday), default to 6
:start-of-week 0
With 0, this is what my /date-picker looks like on Android: