Bug 429112

Summary: Unsynchronizing clock throws error
Product: [Applications] systemsettings Reporter: David <david.cortes.rivera>
Component: kcm_clockAssignee: Paul Campbell <paul>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, plasma-bugs
Priority: NOR    
Version: 5.20.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David 2020-11-14 19:51:40 UTC
SUMMARY
If I set the clock to be updated automatically, apply the setting, and then untick it, plasma will throw an error pop up.

STEPS TO REPRODUCE
1. Right click the clock in the taskbar.
2. Select "Adjust Date and Time"
3. Tick "Set date and time automatically".
4. Click "Apply".
5. Uncheck the previous checkbox.
6. Click "OK"

OBSERVED RESULT
Throws error: "Unable to set current time"

EXPECTED RESULT
Should leave the time as to what it synchronized with the setting, but don't do any further synchronization.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-11-16 20:02:24 UTC
Can reproduce. How annoying.
Comment 2 Bug Janitor Service 2020-11-24 08:07:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/242
Comment 3 Nate Graham 2022-07-21 21:02:29 UTC
As discovered in https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/242#note_141636, this is an upstream issue that we really shouldn't work around in our own code.