OpenTracks
OpenTracks copied to clipboard
Start of the week - selectable
Is your feature request related to a problem? Please describe. For almost half of the worlds population the start of the week is Monday and not Sunday. https://www.timeanddate.com/calendar/days/first-day-of-the-week.html Also https://en.wikipedia.org/wiki/Week
Its incredible annoying when filtering when this setting is missed.
Describe the solution you'd like Settings - User Interface - "Start of the week" Let us choose between Saturday, Sunday and Monday
Describe alternatives you've considered None
EDIT for clarification:
- Device: Xiaomi Mi 9
- OS: Android 10
Regional Settings: Tried UK, Austria, Germany
Every time it starts with sunday.
Actually, OpenTracks behaves region specific. With English (US) it is Sunday. With German (Germany) as well as Spanish (Spain) it is Monday. So, works as expected :D
Android 14 will support configuring certain settings per Language/Region. https://developer.android.com/about/versions/14/features#regional-preferences
I had region UK and it was sunday. Changed the region now to austria and its still sunday. Changed the regional settings to germany, its still sunday.
Every calendar app has included a setting for this, please open this issue again and it would be greatly appreciated if this would be a setting.
And for clarification about what i'm talking:
Interesting I have an android system setting for the weekstart date and it is set to monday, but OpenTracks shows Sunday.
Android 12 looks like this (aka working).
Tested again. The system setting which I showed above applies only to the stock calendar app, no other app respect that setting. But when I change the language from english/us to english/uk, I get the starting date of monday.
Here is the code that is determining the start of the week: https://github.com/OpenTracksApp/OpenTracks/commit/b4ce99440a364485c5f2e08e238efefe7c9c3e14
LocalDateTime firstDayThisWeek = LocalDate.now().with(WeekFields.of(Locale.getDefault()).getFirstDayOfWeek()).atStartOfDay();
It is not Android 14 ready :)
We may also think about migrating to MaterialDesign's DateRangePicker