# API with daily resolution in non UTC timezone?

**URL:** <https://community.dynatrace.com/t/api-with-daily-resolution-in-non-utc-timezone/19979>\
**Category:** Dynatrace API\
**Tags:** automation, dynatrace-api\
**Created:** [August 5, 2020, 7:12pm UTC](https://community.dynatrace.com/t/api-with-daily-resolution-in-non-utc-timezone/19979 "2020-08-05T19:12:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [August 5, 2020, 7:12pm UTC](https://community.dynatrace.com/t/api-with-daily-resolution-in-non-utc-timezone/19979/1 "2020-08-05T19:12:05Z")

</div>

I have noticed that values that I collect through the v2 API are not correct relative to the Portuguese timezone, when using a daily resolution, “resolution=d”. Half of the year we are at UTC and it works, but not in Summer time.

What I want is to produce a report of daily values for a month, but I don’t want to iterate each single day, which would produce 30x requests.

Is it not possible to tell which timezone to use in the API?

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [August 5, 2020, 10:09pm UTC](https://community.dynatrace.com/t/api-with-daily-resolution-in-non-utc-timezone/19979/2 "2020-08-05T22:09:37Z")

</div>

Hi Antonio,

UTC is the default time that everyone uses to access the API.

The only place I know of where you can change the default time gathered is in the “User Session API” where there is a parameter called “offsetUTC”. See below document:

> **[User sessions API - GET Table](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/rum/user-sessions/table)**
>
> View user sessions data in a table form via the Dynatrace API.

I don’t believe other endpoints have this parameter available as of right now, but it would be a good quality of life improvement when working with the v2 API’s. I would suggest mentioning this in the product ideas forums if it is not there already.

Hope this helps.

-Dallas

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [August 6, 2020, 8:30am UTC](https://community.dynatrace.com/t/api-with-daily-resolution-in-non-utc-timezone/19979/3 "2020-08-06T08:30:39Z")

</div>

Yesterday, I had checked, but no reference appeared. I checked more carefully today and it seems no one has suggested it, so I put in this one:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3D608c02d6-dfcb-494f-9ccb-e107d6bd459c&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**
