Greetings,
I am trying to find out what timezone the operating system/bios clock? is running in.
The problem is that if TZ is missing or empty, I suspect that date and ls revert to TZ=UTC.
However, if TZ=America/Los_Angeles, or America/Chicago, then I know what the LOCAL timezone is set to.
But how do I know what the timezone Linux OS is running on? What does cron and other daemons base their timezone off of?
-daniel
Best Answer
It's based off of the contents of
/etc/localtime
, which comes from one of the files in/usr/share/zoneinfo
and can be changed withtzselect
orsystem-config-date
.