Skip to main content
Question

API Response Time Zone


GOAA
Navigator | Tier 3
Forum|alt.badge.img+7
  • Navigator | Tier 3
  • 110 replies

Hello

How could i change the Time zone on the response api?

 

I execute the https://xxxxxxx/v2/activity/list , but response in a diference time zone.

 

CR V26 Onpremise

 

 

3 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+16
  • Most Valuable Pathfinder
  • 3274 replies
  • April 11, 2023

Hi @GOAA ,

Whether your CR and API response time zone is same ?

Configuring the time zone this is related to the A11. i hope same kind of steps available to A360 as well. Kindly check with AA Support team.

 

 


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • April 11, 2023

@GOAA 

The retrieved data will be in UTC format.  Im’ not sure if exist any parameter to change the time zone from the result. 

 

Example: The following .json will get the historical records, from 2022-10-14 17:00:00  to 202210-14 18:01:00 

 

{

  "sort": [

    {

      "field": "startDateTime",

      "direction": "desc"

    }

  ],

  "filter": {

    "operator": "and",

    "operands": [

      {

        "operator": "gt",

        "field": "startDateTime",

        "value": "2022-10-14T17:00:00.001Z"

      },

      {

        "operator": "lt",

        "field": "endDateTime",

        "value": "2022-10-14T18:01:00.000Z"

      }

    ]

  },

  "fields": [],

  "page": {

    "length": "1000",

    "offset": "0"

  }

}

 

Regards


rbkadiyam
Forum|alt.badge.img+16
  • Navigator | Tier 3
  • 578 replies
  • April 12, 2023

@GOAA 

There is no automatic way. You need a mechanism to get the user's timezone (e.g. using some API) and then convert the date-time to that timezone. Check How to convert date time from one time zone to another time zone for the second part. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings