+

Search Tips   |   Advanced Search

 

Set the time zone for a single appserver

 

You can ensure that your application components use the correct time zone. How you do this varies by the operating system on which WebSphere Application Server is installed and, in some cases, by the scope required.

If you set your appservers to a North America time zone, review the Technote...

Changes to Daylight Saving Time will affect IBM WebSphere Application Server and its associated Operating Systems

...and make sure that you have applied the service updates required to support the changes the United States and Canada are making to the start and stop dates for Daylight Savings Time.

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, you might specify EST5EDT for Eastern Standard Time, Daylight Savings Time.

[HP-UX] When the East African Time Zone (EAT) is specified as your time zone setting, the HP-UX 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 running on an operating system whose JVM correctly handles the EAT.

[HP-UX] If 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.

 

Overview

In some application environments, it is important that appserver components use the same time zone.

To change the time zone setting for a single appserver:

 

Procedure

  1. In the console click...

    Application Servers | server | Server Infrastructure | Java and Process Management | Process Definition | Java Virtual Machine

  2. Either click Custom Properties, or enter...

    -Duser.timezone=time_zone_ID

    ...in the Generic JVM arguments field.

  3. If you clicked Custom Properties in the previous step, specify user.timezone in the Name field and the appropriate time zone ID in the Value field.

    You can also enter a description of this custom property and the setting you specified.

  4. Click Apply.

  5. Save your work.

    Make sure Synchronize changes with Nodes is selected, and click Save.

 

Results

All of the components of this appserver use the time zone specified for the custom property.

 

What to do next

Stop and restart this appserver. You must restart the server for the change to take effect.



Time zone IDs that can be specified for the user.timezone property

 

Related tasks


Configure WebSphere variables
Manage appservers