To ensure that the application server runtime and your application components have the correct date and time values, set the user.timezone property. The syntax of the property is
user.timezone=timezone
where timezone is the supported value for your time zone. For a list of supported values, see Supported user.timezone property values for the Development Kit for Java(R) 1.4.
Note: The Java(TM) virtual machine calculates the time based on the value of the user.timezone property and the system values QHOUR and QUTCOFFSET. QUTCOFFSET represents the number of hours difference between the system's time zone and Greenwich Mean Time (GMT). The Java virtual machine adds the values of QHOUR and QUTCOFFSET to calculate GMT, then uses GMT and value of the user.timezone property to derive the correct time of the day.
You can set the user.timezone property in several different files. The time zone setting has different effects based on the file in which it is specified.
Set the property to affect all Java virtual machine processes on your iSeries server.
Edit the user.timezone property in the /QIBM/UserData/Java400/SystemDefault.properties file. If the file does not exist, create it in this directory.
Set the property to affect application servers.
You have two options:
Configure a locale to specify the time zone
You can also configure your application server to run in a locale. The locale determines the time zone in which a Java virtual machine operates. To use locales, follow these steps:
Note: The source file also contains settings to indicate when daylight savings time begins, when it ends, and how much time to add or subtract. The Java virtual machine ignores these settings and reads only the time zone field TNAME. The value of TNAME must match the name of a Java time zone.
If you use more than one method to specify the time zone, the application server prioritizes the methods in this order: