WA Agent: How to set different time zone for agent than the one on OS / host?
search cancel

WA Agent: How to set different time zone for agent than the one on OS / host?

book

Article ID: 206430

calendar_today

Updated On:

Products

Workload Automation Agent

Issue/Introduction

The agent writes logs and spool output.  All the timestamps on these output will use default timezone os the machine.  This WA Agent timezone can be changed if different timestamp is needed.
 
E.g.
 
Spool output:
----------------------------------------------------------------
Output of messages for workload object TEST_LS/MY_APP.1/MAIN
Start date Thu Jan  7 12:34:56 2021 UTC
----------------------------------------------------------------

 

 

Environment

Release : 11.4

Component : CA Workload Automation System Agent

Cause

The JRE used by the agent uses default timezone set by the OS.

Resolution

Set this parameter in the agentparm.txt. Change timezone to desired setting.


oscomponent.jvm.x.options=-Duser.timezone=America/Toronto

 

Additional Information

Note: If the 'oscomponent.jvm.x.options' already exists in the agentparm.txt then append the 'Duser.timezone=America/Toronto' to existing values. 

E.g.

oscomponent.jvm.x.options=XX:+UseGetTimeOfDay;-Duser.timezone=America/Toronto