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
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