Linux – CentOS Ignoring Timezone and showing UTC

centoslinux

I've set my server's timezone to Central:

/etc/localtime -> /usr/share/zoneinfo/US/Central

After rebooting, when I run the date command, the time is still listed in UTC.

[root@dev etc]# date
Sat Oct  5 16:14:28 UTC 2013

How can I get it to display in the local timezone?

Best Answer

You could check if there is something wrong with this file: /etc/localtime

Using for example:

zdump -v /usr/share/zoneinfo/US/Central or zdump -v /etc/localtime

In my case the information for this year looks like this:

/usr/share/zoneinfo/US/Central  Sun Mar 10 07:59:59 2013 UTC = Sun Mar 10 01:59:59 2013 CST isdst=0 gmtoff=-21600
/usr/share/zoneinfo/US/Central  Sun Mar 10 08:00:00 2013 UTC = Sun Mar 10 03:00:00 2013 CDT isdst=1 gmtoff=-18000
/usr/share/zoneinfo/US/Central  Sun Nov  3 06:59:59 2013 UTC = Sun Nov  3 01:59:59 2013 CDT isdst=1 gmtoff=-18000
/usr/share/zoneinfo/US/Central  Sun Nov  3 07:00:00 2013 UTC = Sun Nov  3 01:00:00 2013 CST isdst=0 gmtoff=-21600