Daylight saving problem

Taking care of your Linux box.
Post Reply
ashar
Cadet
Posts: 4
Joined: Tue Apr 16, 2002 10:47 am

Daylight saving problem

Post by ashar »

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?
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: Daylight saving problem

Post by LinuxFreaK »

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
ashar
Cadet
Posts: 4
Joined: Tue Apr 16, 2002 10:47 am

Re: Daylight saving problem

Post by ashar »

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.
Post Reply