[SOLVED] fixing the clock

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] fixing the clock

Postby rejean » Oct 21st, '13, 19:50

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?
Last edited by rejean on Oct 23rd, '13, 21:44, edited 3 times in total.
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: fixing the clock

Postby doktor5000 » Oct 21st, '13, 19:58

Please show the output of
Code: Select all
timedatectl
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: fixing the clock

Postby rejean » Oct 21st, '13, 20:44

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.
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: fixing the clock

Postby doktor5000 » Oct 21st, '13, 21:22

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: fixing the clock

Postby rejean » Oct 21st, '13, 22:04

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.
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: fixing the clock

Postby gohlip » Oct 22nd, '13, 09:18

rejean wrote: ........ something just happened and the problem seems to be fixed.

You rebooted.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: [UNSOLVED] fixing the clock

Postby rejean » Oct 23rd, '13, 17:38

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.
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: [UNSOLVED] fixing the clock

Postby filip » Oct 23rd, '13, 17:58

I noticed that too some time ago.

Right click on time.
Set Digital clock.
Time zone.
Untick UTC and tick your local one.
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: [UNSOLVED] fixing the clock

Postby rejean » Oct 23rd, '13, 18:31

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.
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: [UNSOLVED] fixing the clock

Postby gohlip » Oct 23rd, '13, 18:46

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).
Last edited by gohlip on Oct 23rd, '13, 19:04, edited 1 time in total.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: [UNSOLVED] fixing the clock

Postby rejean » Oct 23rd, '13, 19:03

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 ~]$
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: [UNSOLVED] fixing the clock

Postby gohlip » Oct 23rd, '13, 19:27

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.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: [UNSOLVED] fixing the clock

Postby rejean » Oct 23rd, '13, 20:22

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 ~]$

rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: [UNSOLVED] fixing the clock

Postby gohlip » Oct 23rd, '13, 20:26

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)
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: [SOLVED] fixing the clock

Postby rejean » Oct 23rd, '13, 21:46

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.
rejean
 
Posts: 65
Joined: Dec 24th, '11, 18:02

Re: [SOLVED] fixing the clock

Postby gohlip » Oct 23rd, '13, 21:57

You're welcome. Cheers.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron