You can update the user.timezone
property in the properties file
for a user profile to set the time zone for all of the application
servers
running under that user profile. Setting this property ensures that
all application
components running under that profile use the same time zone.
Before you begin
Verify that extended National Language
Support (NLS) is installed
on your IBM® i server.
If extended NLS support is not already installed, install it by selecting
option 21 when you install the base operating system (5769-SS1).
About this task
In some application environments, it is important that all
of the
application servers running under a user profile use the same time
zone. If
this is your situation, before starting your application servers,
you can
either update the user.timezone property in the
SystemDefault.properties file
for a specific user profile.
Avoid trouble: The
value
specified for the user.timezone property in a user profile properties
file overrides any system locale setting for the application servers
running
under that user profile.
gotcha
Procedure
- Edit the SystemDefault.properties file
located
in the /home/user_ID directory.
If the file does not exist, create a SystemDefault.properties file
in that directory.
- Change the value specified
for the user.timezone property to the
correct time zone. If this property does not exist, add
it to the
file.
The syntax for setting the property is user.timezone=timezone,
where timezone is the supported value for the appropriate
time zone.
The Java Virtual
Machine (JVM) calculates the
time based on the value of the user.timezone property and the QHOUR
and QUTCOFFSET
system values. QUTCOFFSET represents the number of hours' difference
between
the system's time zone and Greenwich Mean Time (GMT). The JVM adds
the values
of QHOUR and QUTCOFFSET to calculate GMT, and then uses GMT and value
of the
user.timezone property to derive the correct time.
- Save your changes.
Results
All of the
components of the application servers running under this
user profile use the time zone specified for the user.timezone property.
What to do next
Stop and restart the application servers running under this
user
profile. You must restart these servers for the change to take effect.