# Retrieving daily metric giving wrong date

**URL:** <https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [March 10, 2025, 3:29am UTC](https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629 "2025-03-10T03:29:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [March 10, 2025, 3:29am UTC](https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629/1 "2025-03-10T03:29:17Z")

</div>

I am trying to retries Cpu utilization from remote for a period&nbsp; but results are one day ahead

following are details

remote\_unix.cpu\_utilization:\<custom host\>:avg  
from=2025-02-21T01:57.01.123+00.00&to=2025-02-26T21:57:01.123+00.00&resolution=1d  
2025-02-22 00:00:00,6.911111111111111  
2025-02-23 00:00:00,5.658741258741259  
2025-02-24 00:00:00,6.070138888888889  
2025-02-25 00:00:00,6.195969423210563  
2025-02-26 00:00:00,6.677268475210477  
2025-02-27 00:00:00,

while i query from 21st to 26th but results are coming from 22nd to 27th

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [March 10, 2025, 4:55am UTC](https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629/2 "2025-03-10T04:55:34Z")

</div>

[@Vijayt](https://community.dynatrace.com/user/75656)&nbsp;How are you querying this data ? Could be a difference in timezone?

---

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [March 10, 2025, 4:57am UTC](https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629/3 "2025-03-10T04:57:27Z")

</div>

i am in IST . how to get the data in UTC .

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [March 10, 2025, 6:03am UTC](https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629/4 "2025-03-10T06:03:00Z")

</div>

[@Vijayt](https://community.dynatrace.com/user/75656)&nbsp;I think the data that you are querying is already in UTC . The variation that you are seeing is because of the 1d resolution and time slot of the data sample stored by dynatarce.

Here is some explanation around that , hope this helps.

> **[Metrics API - GET metric data points](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/get-data-points)**
>
> Read data points of one or multiple metrics via Metrics v2 API.

---

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [March 13, 2025, 10:49am UTC](https://community.dynatrace.com/t/retrieving-daily-metric-giving-wrong-date/50629/5 "2025-03-13T10:49:14Z")

</div>

my requirement id to retrieve&nbsp; daily average cpu usage. with correct date on it. is there any workaroun

d
