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

CA 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
----------------------------------------------------------------

 

 

Cause

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

Environment

Release : 11.4

Component : CA Workload Automation System Agent

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