9

Time zone mismatch calling date via ssh

view full story
linux-howto

http://stackoverflow.com – I'm getting two different timezones on Linux (CENTOS 5.6) depending on whether date is called locally or via ssh: foo$ ssh me@bar date Tue Nov 5 18:08:32 EST 2013 foo$ ssh me@bar bar$ date Tue Nov 5 17:09:16 CST 2013 /etc/localtime is set to central time: $ ls -l /etc/localtime lrwxrwxrwx 1 root root 27 Nov 5 13:10 /etc/localtime -> /usr/share/zoneinfo/CST6CDT TZ is set to America/Chicago in .bash_profile. If that line is commented out, time zone comes back as eastern rather than central. I'm assuming this all means the computer believes in its heart that it's on eastern rathe (HowTos)