ITEM: I1050L

Problem concerning time zone change and other applications.


Question:

I have a RISC/6000 model 580 running AIX version 3.2.5.  When I
changed the time zone in AIX, I had to restart all my other
applications in order for them to be in sync with everything else.
My database server still has the wrong time.

Is there a work around for this problem?

Response:

The TZ variable is an environment variable designed to give users the
ability to specify unique offsets from the system clock.  Since it is
an environment variable, multiple users and processes can have 
unique offsets (i.e. Time Zones) since all requests for time would
rely on the environment variable value in the invoking shell for
determination.

A change to the TZ variable will only affect processes invoked from
shells in which the new value has taken effect.  In order for changes 
to the /etc/environment variable to take effect system-wide, the 
system would either have to be re-ipl'd, or all processes (including 
daemons) in which you wanted to flush the old environment value would 
have to be stopped and then restarted.
care of all time zone changes automatically, AFTER A SYSTEM REBOOT.
Once the TZ rule has been set, the system will go through the time
changes automatically without any additional intervention.

For users who want to be able to change the time system-wide for all
processes dynamically, the best option is to have a fixed TZ and then
use the date command to change the system clock.  This bypasses the
need for re-ipling or restarting applications to flush the old TZ
values.


Support Line: Problem concerning time zone change and other applications. ITEM: I1050L
Dated: May 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:46
Comments or suggestions? Contact us