For my user account I explicitly export the TZ variable to be america/chicago in my .bash_profile file, so when I type: date, I get the date in CST. However I have not set the TZ variable for any other user, and when they type: date, they get the date in CST as well, but the output of the command: timedatectl specifically says the timezone is UTC:
[tim etc]timedatectl Warning: Ignoring the TZ variable. Reading the system's time zone setting only.
Local time: Tue 2018-07-17 18:15:53 UTC Universal time: Tue 2018-07-17 18:15:53 UTC RTC time: Tue 2018-07-17 18:15:52 Time zone: UTC (UTC, +0000) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: n/a
How is it possible that users who don't have the TZ variable set to america/chicago are getting the america chicago output with the date command:
[tim etc]date Tue Jul 17 13:18:46 CDT 2018
I already checked this as well:
lrwxrwxrwx. 1 root root 25 Mar 23 12:50 localtime -> ../usr/share/zoneinfo/UTC
could it be related to the NTP enabled line? which is also confusing me, since I don't have the ntpd daemon running.
This is a aws ec2 machine, if that helps
Thanks!