Bug 490899

Summary: Date & Time KCM asks for password twice after applying time zone change
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_clockAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: fernandommuniz, nate
Priority: NOR    
Version First Reported In: 6.1.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2024-07-27 16:59:56 UTC
STEPS TO REPRODUCE
1. open Date & Time KCM 
2. click on "Time zone" tab
3. select any time zone but the current one
4. apply the change - the authentication dialog shows up
5. type your password and press enter

OBSERVED RESULT
after the last step, Date & Time KCM asks for password again 

EXPECTED RESULT
Date & Time KCM asks for password once

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-07-27 20:18:53 UTC
Can confirm.
Comment 2 Nate Graham 2025-01-02 20:25:50 UTC
*** Bug 498144 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2025-04-24 11:15:59 UTC
I figured out what's going on here: changing the timezone requires poking two systemd services:
- org.freedesktop.timedate1.set-ntp
- org.freedesktop.timedate1.set-timezone

Both require authentication, so you're asked twice. The only practical way to improve this is to ask distros to ship polkit rules that suppress one or both of these by allowing them to proceed without authentication. I've written about this in https://community.kde.org/Distributions/Packaging_Recommendations#Polkit_configuration and notified distros about it.