Time zone configuration

When you have Java™ programs that are sensitive to time zones, you should configure the time zone on your system so that your Java programs use the correct time.

The simplest method for configuring time zone is to set the QTIMZON system value to one of the *TIMZON objects provided by IBM® i. To correctly determine the local time, the Java virtual machine (JVM) requires that both the QUTCOFFSET system value and the user.timezone Java system property be set properly. Setting the QTIMZON system value does both of these for you. The TIMZON objects contain an alternate long name that specifies the Java user.timezone value that will be used, so you should select the QTIMZON value that contains the appropriate alternate name. For example, TIMZON object QN0600CST2 contains the alternate name America/Chicago and provides the correct time support for the United States Central time zone.
Note: The user.timezone system property setting provided by the QTIMZON system value can be overridden by specifying the user.timezone value explicitly on the command line or in the SystemDefault.properties file. This allows each Java job to have its own unique user.timezone value so that multiple time zones can be supported on the same system.