Cannot set the time correctly

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Cannot set the time correctly

Postby moshebagelfresser » Oct 6th, '13, 19:24

The clock is wrong I am on Jerusalem Daylight Saving Time and it's showing Jerusalem Winter Time. I am unable even in root to reset it to the correct time. I have has to set it to Athens time. We will be moving off Daylight Savings time at the end of the month with the rest of Europe.
moshebagelfresser
 
Posts: 16
Joined: Nov 12th, '12, 14:08

Re: Cannot set the time correctly

Postby gohlip » Oct 6th, '13, 20:23

First, you need to set your computer to use UTC instead of local-time.
Code: Select all
# timedatectl set-local-rtc false

And best to enable NTP.
Finally, if you use Windows, it will revert to local-time and when Mageia starts up again after you boot windows, it will show wrong time until NTP kicks in.
To prevent this set all your other OS to UTC as well and for windows, you will need to change its registry settings (to UTC) and disable NTP for windows. (some windows upgrade may mess this up again to show local-time - repeat registry change)

note: linux UTC will take care of daylight changes; local-time will not.
windows will prompt you if you want to change for daylight - answer 'y'
Last edited by gohlip on Oct 6th, '13, 20:31, 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: Cannot set the time correctly

Postby doktor5000 » Oct 6th, '13, 20:29

Which desktop environment are you using, and which tool did you use to set the clock? drakclock?

Also please show the output of
Code: Select all
timedatectl
and
Code: Select all
tail -1 /etc/localtime
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot set the time correctly

Postby kenkay » Oct 7th, '13, 13:27

I had exactly the same problem. NTP mistakenly thinks that standard time has arrived and sets the clock back one hour. One temporary solution is to uncheck Enable Network Time Protocol in the Date, Clock & Time Zone settings. The time change should now stick. When Winter Time begins at the end of the month you can reset NTP.
kenkay
 
Posts: 3
Joined: Oct 7th, '13, 13:14

Re: Cannot set the time correctly

Postby neXt » Oct 27th, '13, 02:55

check if in /etc/sysconfig/clock you have ZONE=(I presume it should be "Israel" for you)
run a zdump -v /etc/localtime it should show your right DST (Sat Oct 4 22:59:59 2014 UTC = Sun Oct 5 01:59:59 2014 IDT isdst=1)
if not, check if your /etc/localtime points to /usr/share/zoneinfo/Israel, otherwise you should run
Code: Select all
rm -f /etc/localtime && ln -s /usr/share/zoneinfo/Israel /etc/localtime
User avatar
neXt
 
Posts: 20
Joined: Oct 15th, '11, 21:48
Location: Le Gardeur, Canada


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest