Bug 319072

Summary: "Set date and time automatically" option doesn't work
Product: [Applications] systemsettings Reporter: soshial <soshial>
Component: kcm_clockAssignee: Paul Campbell <paul>
Status: RESOLVED FIXED    
Severity: normal CC: leszek.lesner, patrickfmarques, soshial
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description soshial 2013-04-29 14:44:25 UTC
I use openSUSE 12.3 via VirtualBox and when I freeze the virtual machine and then continue using system, the time stays the same and never updates or updates less frequent that once a day. The same was for OpenSUSE 12.2 when I was using it without VM.

Reproducible: Always

Steps to Reproduce:
1. Set to update time and date automatically
2. Freeze the VM and wait 1 hour
3. Unfreeze and work for 1 day
Actual Results:  
The time doesn't update

Expected Results:  
The time should be updated each hour.
Comment 1 Patrick 2013-05-12 22:20:09 UTC
I've installed Kubuntu and have the same problem. In my case I tried to configure using "System Settings -> Date & Time" but then I found the link localtime pointing to a wrong path "/etc/localtime -> ../posix/Europe/Lisbon"

After pointing this to the correct one everything appears to be ok: "/etc/localtime -> /usr/share/zoneinfo/Europe/Lisbon"
Comment 2 soshial 2013-05-13 16:06:33 UTC
Please, can any developer confirm this bug?

@Patrick, I will try to do as you tell and see if it helps. Thank you.
Comment 3 Leszek Lesner 2013-07-29 16:32:00 UTC
soshial this might be related to https://bugs.kde.org/show_bug.cgi?id=178968
Please take a look if ntpdate or rdate is running in the background.
Comment 4 soshial 2013-09-17 20:02:05 UTC
(In reply to comment #3)
> soshial this might be related to https://bugs.kde.org/show_bug.cgi?id=178968
> Please take a look if ntpdate or rdate is running in the background.

Dear Leszku, neither ntpdate or rdate is running in the background (at least searching in System Activity didn't return anything).
Comment 5 David Edmundson 2015-02-27 19:02:37 UTC
Git commit b6ae01ca8ea776c97cc57836401ca9696e2529e8 by David Edmundson.
Committed on 14/02/2015 at 13:50.
Pushed by davidedmundson into branch 'master'.

Add systemd support into the clock KCM as an optional dependency

The current time setting helper is incredibly broken.

It manually tries to run a range of NTP utilities, all of which are
deprecated.

We can just call timedated directly and cut out the middleman as it has
uses polkit anyway.

This is currently an optional dependency, and the original helper still
exists. It makes the code messy, but we have users to support for now.

Detection is done at runtime
Related: bug 196316, bug 311286, bug 317784, bug 337012, bug 339582, bug 241817, bug 178968, bug 320456, bug 317999, bug 337659
REVIEW: 122400

M  +5    -1    kcms/dateandtime/CMakeLists.txt
M  +22   -12   kcms/dateandtime/dateandtime.ui
M  +44   -30   kcms/dateandtime/dtime.cpp
M  +2    -1    kcms/dateandtime/dtime.h
M  +80   -7    kcms/dateandtime/main.cpp
M  +5    -1    kcms/dateandtime/main.h
A  +43   -0    kcms/dateandtime/timedated1.xml

http://commits.kde.org/plasma-desktop/b6ae01ca8ea776c97cc57836401ca9696e2529e8