Change time zone settings
In some application environments, it is important that application server components use the same time zone. Use the admin console to ensure that the application components use the correct time zone.
Determine the scope at which you want 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.
[HP-UX] When the East African Time Zone (EAT) is specified as the 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 we attempt to synchronize with servers that are running on an operating system whose JVM correctly handles the EAT.
[HP-UX] 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 appserver use EAT as its time zone setting, add the -Duser.timezone=EAT parameter to the startServer command.
To change the time zone setting for a single appserver:
Complete one or more of the following actions to set appropriate time zone values for the environment.
- Set the time zone for all of the server processes.
- In the admin console, click Environment > WebSphere variables.
- Select All scopes from the list of scope options.
- 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 Variable 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 Daylight Savings is used as the time zone setting for all of the server processes.
- Set the time zone for all of the server processes in a particular cell.
- In the admin console, click Environment > WebSphere variables\ .
- Select the cell for which you want to set the time zone value from the list of scope options.
- Set a value for the TZ variable.
If the TZ variable is included in the list of defined variables, click TZ, and 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 Daylight Savings is used as the time zone setting for all of the server processes that are running in that cell.
- Set the time zone for all of the server processes in a particular node.
- In the admin console, click Environment > WebSphere variables\ .
- Select the node for which you want to set the time zone value from the list of scope options.
- Set a value for the TZ variable.
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.
If the TZ variable is included in the list of defined variables, click TZ, and specify a new time zone value in the Value field.
For example, if we specify TZ in the Name field, and EST5EDT in the Value field, Eastern Daylight Savings is used as the time zone setting for all of the server processes that are running in that node.
- Set the time zone for a specific server.
- In the admin console, click Environment > WebSphere variables\ .
- Select the server for which you want to set the time zone value from the list of scope options.
- 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 Daylight Savings is used as the time zone setting for all of the server processes.
- Click Apply, and then click Save to save the changes.
- Stop and restart all of the affected appserver that were running when you made the time zone changes.
Results
Your new time zone setting are in affect for the designated servers.
Time zone IDs that can be specified for the user.timezone property
Related tasks
Creating, editing, and deleting WebSphere® variables
Manage appservers