You can use the following as a guide to finding the local timezone for various systems depending on the distribution and release. If you change the timezone on a machine, you will at the least want to restart the cron daemon, whatever it is called on your machine, to pick up the change. You would generally be advised to reboot the system, so that all processes which are sensitive to the current time reflect the new timezone.
Also with respect to keeping clocks synchronized over the long term, Linux used to use the
ntpd daemon (Network Time Protocol daemon) to keep the clock synchronized with Internet sources. Recent Linux releases have switched to using
chronyd for the same purpose. One or the other should be in play. There may be additional setup required in a virtual-machine environment.
The Linux and Solaris commands above will yield strings like the following:
- The value exposed with this command has a complicated form; see
man environmentfor details.
- The timezone is generally not changed by direct editing of the
/etc/environmentfile. On AIX 5.3 and lower, use
smit chtzfor that. On AIX 6.1 and 7.1, use
FAQs (Knowledge Base)
How To's (Knowledge Base)
FAQs (GroundWork Support 8)
How can I find the local timezone? (GroundWork Support 8)
How To's (GroundWork Support 8)