Also make sure that the environment variable TZ
is unset, as it overrides what is configured by /etc/localtime
.
Even an innocent export TZ=
makes date (and other utilities) default to outputting UTC.
Check /etc/environment
, /etc/profile
, /etc/bash.bashrc
, ~/.profile
, ~/.bashrc
, your Desktop Environment configuration and other commonly sourced configuration files for instances of setting and exporting TZ and remove them.
Edit:
Also check that your /usr/share/zoneinfo/US/Central
is a valid existing file:
$ file -L /usr/share/zoneinfo/US/Central
/usr/share/zoneinfo/US/Central: timezone data, version 2, 6 gmt time flags, 6 std time flags, no leap seconds, 235 transition times, 6 abbreviation chars
strace -v date
?