Bug 452306 - Day picker in KOrganizer's edit event dialog does not respect "weekly start day" option
Summary: Day picker in KOrganizer's edit event dialog does not respect "weekly start d...
Status: CONFIRMED
Alias: None
Product: korganizer
Classification: Applications
Component: incidence editors (show other bugs)
Version: 5.19.3
Platform: Gentoo Packages Linux
: NOR wishlist (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-05 20:11 UTC by tusooa
Modified: 2022-04-06 00:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tusooa 2022-04-05 20:11:58 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Weekly start day in KOrganizer is set to Monday. Day picker still show a calendar with weeks starting at Sunday.


STEPS TO REPRODUCE
1. Settings -> Time and Date -> Weekly start day: Monday (this has always been my setting.)
2. In agenda view, add an event.
3. Trigger the day picker by clicking the text box after "Start" or "End"

OBSERVED RESULT
The pop-up calendar should have Monday at the beginning of each row.

EXPECTED RESULT
The pop-up calendar has Sunday at the beginning of each row.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.16.12-gentoo-x86_64 / 5.24.4
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 gjditchfield 2022-04-05 21:38:55 UTC
The  week's starting day seems to be controlled by the user's locale.
When I switch between Canadian English and français (France),
KOrganizer switches between Sunday and Monday.
The setting is shared by all KDE apps.  It is set in System Settings,
Regional Settings > Formats > Time.
What locale are you using?

(Another way to check is to run "locale LC_TIME -k" in a terminal.
"first_weekday=2" in the output means the first weekday is Monday.)
Comment 2 tusooa 2022-04-05 23:15:38 UTC
(In reply to gjditchfield from comment #1)
> The  week's starting day seems to be controlled by the user's locale.
> When I switch between Canadian English and français (France),
> KOrganizer switches between Sunday and Monday.
> The setting is shared by all KDE apps.  It is set in System Settings,
> Regional Settings > Formats > Time.
> What locale are you using?
> 
> (Another way to check is to run "locale LC_TIME -k" in a terminal.
> "first_weekday=2" in the output means the first weekday is Monday.)

I am on `LC_TIME="en_CA.UTF-8"`. However, as this is KOrganizer, and KOrganizer has its own setting entry for "start day of week," I as a user expect it should be used instead. In addition, I am not willing to change my current date format just to get the expected "start day of week" behaviour.
Comment 3 tusooa 2022-04-05 23:25:01 UTC
In other words, the behaviour in the agenda view (agrees with KOrganizer configuration) and the day picker ("agrees with LC_TIME") should be consistent with each other.
Specially, the "week number" in the day picker is not consistent with the layout itself. If I pick Apr 10, 2022 (Sunday), it shows Week 14; if I pick Apr 11, 2022 (the following Monday), it shows Week 15! But the two days are on the same row. This is totally unexpected from a user's point of view.

As I provided the information requested, I changed the status back to REPORTED.
Comment 4 gjditchfield 2022-04-06 00:57:49 UTC
The week number is a different can of worms:  it is the ISO week number,
https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
and by definition those weeks start on Monday.