Problem with Date and Time Zone in CentOS 4.4

Last night I was configuring my new server and having trouble with changing the time zone. I use dateconfig command to change the time zone, I select “Asia/Jakarta” and save the configuration.

Strange thing is the time zone configuration is wrong, instead of WIT the time zone used is UTC. I tried to change the time zone again, this time I didn’t use dateconfig but by creating a symlink from /usr/share/zoneinfo/Asia/Jakarta to /etc/localtime, it doesn’t work either.

Today, after trying several time creating symlink and didn’t worked, I started to think that maybe the /usr/share/zoneinfo/Asia/Jakarta file is broken by dateconfig. So I search on Google using keywords “/usr/share/zoneinfo/Asia/Jakarta” and found that it’s stored on tzdata package. Runing yum search tzdata I got a result that there is an update for tzdata, I run the update and re-create the symlink. Ta daa.. it’s working :D

I run ntpdate id.pool.ntp.org to synchronize the date and time, and now the date and time on my server synchronized.

Markus

One thought on “Problem with Date and Time Zone in CentOS 4.4”

  1. Thank you – you truely are a minor god among men. I’ve been trying to get my centOS webserver time correct for ages and now it works. I must admit being relatively new to *nix in general I would never have even known to try that. Thank you very much!

Leave a Reply

Your email address will not be published. Required fields are marked *