Problem
If I change the time zone of my server, how do I ensure the new changes will take effect?
Cause
Time zone changes are usually done with the scoadmin(ADM) System Time Manager:
scoadmin "System Time Manager" -> Time -> Change TimezoneIn doing so, the system will display this message when you have made your changes:
The system time zone has been updated. You must logout and log back in to see the effects of this change.
However, this is not correct because logging in and out makes no difference at all.
You can also use the /etc/tz command to change your time zone.
Solution
You can, simply, add a line in /etc/profile which does:
. /etc/TIMEZONE 2> /dev/nullThe problem is the TZ variable is set by /etc/bcheckrc, not /etc/profile.
However, TZ is mainly used when processes are spawned by 'init.' Each process spawned by 'init' starts by running /etc/initscript, which sources /etc/TIMEZONE.
That means that daemons currently running won't detect the TZ change until they are stopped and restarted and will continue to log/issue messages in the old time zone.
Re-boot your server and the changes will take effect.
This problem has been reported to SCO Engineering.
See also
tz(M)