Markus Blog What’s going on Internet?

22Apr/071

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

Bookmark and Share

Most Commented Posts

Comments (1) Trackbacks (0)
  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 comment


*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

No trackbacks yet.


Sideblog feed

  • Mozilla Released Thunderbird 3 9 December 2009
    The long waited open source email client Thunderbird 3 is now released! Upgrading from Thunderbird 2 to Thunderbird 3 is very easy and almost automatically. Once you finished installing version 3, you. […]
  • Microsoft Wireless Comfort Desktop 5000 Keyboard and Mouse 22 October 2009
    The Microsoft Wireless Comfort Desktop 5000 has been designed to enhance your Windows 7 experience. You can easily access programs in the task bar with convenient hot keys. Applications in the taskbar. […]
  • WooFunction: 178 Amazing Web Design Icons 28 September 2009
    The WooFunction Icon Set includes 178 amazing web-related icons in a sophisticated and glossy design style. All 178 icons are available as 32×32 pixel PNG files and we can assure you that they are in. […]
  • Moblin the Next Generation OS for Netbook 27 September 2009
    Moblin is an open source project that supports Linux-based software platform and is optimized for the next generation of mobile devices including netbooks, mobile Internet devices (MIDs), in-vehicle i. […]
  • Twitterify Your Wordpress Blog Using P2 Theme 21 September 2009
    Twitter is becoming more and more popular due to its requirement as micro blogging is not much, only 140 characters that even less than a text message limit which is 160 characters. Blogger that is no. […]