Can the timezone be modified to reflect anything other than GMT in REST API responses?

book

Article ID: 206197

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent CA Workload Automation AE

Issue/Introduction

Just want to know has the time zone changed for the output of REST API. I remember, earlier it used to be in EST time zone but look like the out is showing time in UTC now. I have pasted an output below for reference. it has a time of 021-01-07T13:37:19+0000 where as the output in CLI is in PST zone and the time is 05:37:19.

Also, let me know if there is a way to setup time zone for REST API output.

<jobRuns>
<jobRun>
<avgRunTime>45</avgRunTime>
<machine>autosys_lx_cloud</machine>
<runEndTime>2021-01-07T13:38:04+0000</runEndTime>
<exitCode>127</exitCode>
<name>qa-dvm_ETA_Testing_job</name>
<runMachine>clv235dl-7a73d7</runMachine>
<runNum>67971255</runNum>
<self href="https://lvntest01220:9443/AEWS/job-run-info/qa-dvm_ETA_Testing_job?runnum=67971255" rel="self"/>
<runStartTime>2021-01-07T13:37:19+0000</runStartTime>
<status>5</status>
</jobRun>
<self href="https://lvntest01220:9443/AEWS/job-run-info/qa-dvm_ETA_Testing_job" rel="self"/>
</jobRuns>

 

Environment

Release : 11.3.6

Component : CA Workload Automation AE (AutoSys)

Resolution

It is not possible to modify the timezone in REST API responses. The time stamps in the REST API responses have always been in GMT time. It is up to the consuming application to make the conversion.

The product is working as designed.