Daylight saving problem

Taking care of your Linux box.

Daylight saving problem

Postby ashar » Fri Apr 20, 2012 12:55 pm

Some of my machines (CentOS, RedHat) time went an hour ahead a few days back. This seems to be related to daylight savings.

Current workaround is to set timezone to Tashkent. What is the way to fix this problem at source?
ashar
Cadet
 
Posts: 4
Joined: Tue Apr 16, 2002 10:47 am

Re: Daylight saving problem

Postby LinuxFreaK » Fri Apr 20, 2012 9:26 pm

Dear Asher,

You can check your system date and time after renaming /etc/localtime to different file.

# date
# hwclock
# cp /usr/share/zoneinfo/Asia/Karachi /etc/localtime
# date 042023592012
# hwclock --systohc


Reboot your system and check date and hardware date using these commands.

# date
# hwclock


Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re: Daylight saving problem

Postby ashar » Tue Apr 24, 2012 6:00 pm

Thanks


it looks like some applications use /usr/share/zoneinfo/right/Asia/Karachi
and there is another file in /usr/share/zoneinfo/posix/Asia/Karachi

which should also be fixed for completeness.
ashar
Cadet
 
Posts: 4
Joined: Tue Apr 16, 2002 10:47 am


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron