Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a CentOS server and just cannot seem to set the time correctly. My problem is that I have set the timezone to UTC, and the server seems to acknowledge this but it still states the wrong time!

The real UTC time = 16:56 (My local timezone is GMT)

# hwclock –show
wed 09 Mar 10:56:48 AM UTC -0.502715 seconds

# date
Wed Mar 9 10:56:51 UTC 2011

I.e. the server seems to be saying that it IS in UTC time…but 6 hours behind!

I have taken several of steps to try to correct this including:

1. Use setup to manually pick the timezone
# system-config-date (Set to Etc/UTC)

2. Set the timezone in the localtime file
# ln -sf /usr/share/zoneinfo/UTC /etc/localtime

3. Change the UTC value in the /etc/sysconfig/clock file
I have tried both UTC=true and UTC=false

None of these solutions worked

Please help,


share|improve this question
up vote 4 down vote accepted


You have set the timezone, now you just have to set the time. There are many ways to do this. I usually do:


Or any other method on a quick google search for setting the time on CentOS.

Cheers, -danny

share|improve this answer

I hate to ask, but.. have you done anything to correct the time itself? Seems like the timezone is ok, but the time is off.

Have you set the time manually with the date command or synced to an NTP server?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.