WAS v8.5 > Set up the application serving environment > Administer application servers > Manage application serversChange time zone settings page
In some application environments, it is important that application server components use the same time zone. We can use the dmgr console or system environment variables to ensure the application components use the correct time zone.
Determine the scope at which to set the time zone value. We can set the time zone value such that is applies for an entire cell, for an entire node, or only for a specific server.
Remember that time zone IDs should include an offset and, in almost all cases, a daylight saving time zone name for consistent results. For example, specify EST5EDT for Eastern Standard Time, Daylight Savings Time.
When the East African Time Zone (EAT) is specified as your time zone setting, the HP-UX operating system JVM uses Greenwich Mean Time (GMT). Therefore, log file time stamps are based on GMT instead of EAT. The situation might also causes problems in server federation if you attempt to synchronize with servers that are running on an operating system whose JVM correctly handles the EAT.
If we need to use East African Time Zone as the time zone setting for a specific function, instead of using the following procedure, add the -Duser.timezone=EAT parameter to the appropriate Java command. For example, to have an application server use EAT as its time zone setting, add the -Duser.timezone=EAT parameter to the startServer command. In general cases, the time zone for application server is inherited from the time zone set for the operating system; Java should be inherit the time zone from the operating system, and the application server will use the time zone set for each Java Virtual Machine (JVM). If we need to configure a different time zone for a single JVM, we can set the TZ environment variable in the application server, modify the properties file, or specify a command-line parameter when the JVM starts.
We can use the TZ environment variable to set the time stamps for the application logs.
- Set the time zone for each of your server processes.
- In the dmgr console, click Servers > Server Types > WebSphere application servers > server_name > Java process management > Process definition > Environment entries.
- Set a value for the TZ variable.
- If the TZ variable is included in the list of defined variables, click TZ, and then specify a new time zone value in the Value field.
- If the TZ variable is not included in the list of defined variables, click New, and then specify TZ in the Name field, and the appropriate time zone value in the Value field.
For example, if we specify TZ in the Name field, and EST5EDT in the Value field, Eastern United States is used as the time zone setting for all of your server processes.
- Click Apply, and then click Save to save your changes.
- Stop and restart all of the affected application server that were running when we made the time zone changes.
- Set the time zone with a command-line property for each JVM. For example, use the following parameter to set the time zone on the Java call:
-Duser.timezone=time_zone_code
Results
Your new time zone setting are in affect for the designated servers.
Subtopics
- Time zone IDs that can be specified for the user.timezone property
The following table lists the time zone IDs that we can specify for the user.timezone property.- Time zone IDs that can be specified for the user.timezone property
The following table lists the time zone IDs that we can specify for the user.timezone property.
Related
Configure WebSphere variables