Page 1 of 1

[SOLVED] fixing the clock

PostPosted: Oct 21st, '13, 19:50
by rejean
Hi all!
My clock is 3 hours too fast and I cannot fix it. If I go into the System settings I get the following message;
Unable to authenticate/execute the action: 7, DBus Backend error: could not contact the helper. Connection error: Could not get owner of name 'org.kde.kcontrol.kcmclock': no such name. Message error: Cannot launch daemon, file not found or permissions invalid.

What do you suggest?

Re: fixing the clock

PostPosted: Oct 21st, '13, 19:58
by doktor5000
Please show the output of
Code: Select all
timedatectl

Re: fixing the clock

PostPosted: Oct 21st, '13, 20:44
by rejean
Here;
Code: Select all
[rejean@localhost ~]$ timedatectl
      Local time: Mon, 2013-10-21 15:40:10 ADT
  Universal time: Mon, 2013-10-21 18:40:10 UTC
        RTC time: Mon, 2013-10-21 15:40:09
        Timezone: n/a
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: yes

Warning: The RTC is configured to maintain time in the local time zone. This
         mode is not fully supported and will create various problems with time
         zone changes and daylight saving adjustments. If at all possible use
         RTC in UTC, by calling 'timedatectl set-local-rtc 0'.
[rejean@localhost ~]$ timedatectl set-local-rtc 0
[rejean@localhost ~]$


I should add that I get the original message when I try to check the box for "Set date and time automatically" and that trying "timedatectl set-local-rtc 0" didn't seem to change anything.

Re: fixing the clock

PostPosted: Oct 21st, '13, 21:22
by doktor5000
Have you tried using drakclock and setting local time != UTC and using the correct timezone? That's your 3 hour difference.
http://doc.mageia.org/mcc/3/en/content/drakclock.html
It would also be a good idea to enable NTP so your clock is always in sync.

Re: fixing the clock

PostPosted: Oct 21st, '13, 22:04
by rejean
The thing is that everything is fine in Mageia Control Center->Manage Date and Time ( or drakclock )
Image

only the clock on the panel is wrong but wait a minute something just happened and the problem seems to be fixed. I swear I tried for several days either in drakclock or the System Settings.
I'll make this thread as solved.

Re: fixing the clock

PostPosted: Oct 22nd, '13, 09:18
by gohlip
rejean wrote: ........ something just happened and the problem seems to be fixed.

You rebooted.

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 17:38
by rejean
I am quite sure that I hadn't rebooted. Anyway the problem reappeared;
Image
If I left click on the date icon then I see the right time. If I right-click and choose Adjust Date and Time then you see the above image.
If I go in drackclock I see that Enable Network Time Protocol is checked and the time on the clock is right.
So the problem is definitely related to the panel and that what seems to have fixed it for a little while was the "timedatectl set-local-rtc 0" although it didn't work this time.
I'll remove the date icon on the panel and reinstall it to see what happens.
It seems to have worked for how long I don't dare to say.

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 17:58
by filip
I noticed that too some time ago.

Right click on time.
Set Digital clock.
Time zone.
Untick UTC and tick your local one.

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 18:31
by rejean
I unchecked it. We'll see how it goes. I'll leave this thread marked as "unsolved" for a day or two so I can get more suggestions and then I'll mark it as solved.

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 18:46
by gohlip
You must use systemd and need to reboot to take effect.
Refer http://www.freedesktop.org/software/sys ... tectl.html
Note it's advisable to use UTC instead of local time and enable ntp
Code: Select all
# timedatectl set-local-rtc false
# timedatectl set-ntp true

Recheck with
Code: Select all
$ timedatectl


Note if you use windows (or other OS using local-time), it will show wrong time until ntp kicks in.
You can set Mageia to local time, but daylight savings will not be effected (best to set windows and other OS to utc also).

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 19:03
by rejean
thanks gohlip.
Code: Select all
[rejean@localhost ~]$ timedatectl
      Local time: Wed, 2013-10-23 14:07:06 ADT
  Universal time: Wed, 2013-10-23 17:07:06 UTC
        RTC time: Wed, 2013-10-23 17:07:06
        Timezone: n/a
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
[rejean@localhost ~]$

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 19:27
by gohlip
Of course, you need to set your timezone too :) <that's where you live>

[edit] - you can set timezone from your date panel or use MCC or better yet, use timedatectl as well.
Example,
Code: Select all
$ timedatectl list-timezones
# timedatectl set-timezone Africa/Abidjan


{press 'q' to quit from list-timezones}
reminder - you need to reboot to take effect.

Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 20:22
by rejean
looking better?
Code: Select all
[rejean@localhost ~]$ timedatectl
      Local time: Wed, 2013-10-23 15:21:06 ADT
  Universal time: Wed, 2013-10-23 18:21:06 UTC
        RTC time: Wed, 2013-10-23 18:21:06
        Timezone: America/Glace_Bay
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
[rejean@localhost ~]$


Re: [UNSOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 20:26
by gohlip
Yes! Does it work?

ps: only DST is not shown (daylight saving time); but let's check it out later.
(maybe after a reboot and ntp kicks in)

Re: [SOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 21:46
by rejean
After reboot the clock is still fine so I have marked the thread as "solved". Let's hope it keeps.
Thanks for the help gohlip.

Re: [SOLVED] fixing the clock

PostPosted: Oct 23rd, '13, 21:57
by gohlip
You're welcome. Cheers.