Technical article 113761

If I change the time zone of my server, how do I ensure the new changes will take effect?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

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 Timezone

In 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/null

The 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)

From the Xinuos technical article database, record 113761. Reproduced with permission. The original is at www.sco.com/ta/113761, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.