# How to disconnect "now" variable from hardware timezone?

**URL:** <https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713>\
**Category:** Grafana\
**Tags:** time-selection\
**Created:** [February 5, 2024, 5:34pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713 "2024-02-05T17:34:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![programat3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/programat3/32/42088_2.png) [@programat3](https://community.grafana.com/u/programat3)\
**Post date:** [February 5, 2024, 5:34pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713/1 "2024-02-05T17:34:14Z")

</div>

Hi!  
I am currently working on a dashboard that is on UTC timezone, however, my machine is in UTC-03. This is causing problems on the dashboard that is (as far as I can tell) detached from browser timezone. I will attach screenshots of the settings:  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/9/e/9ea50bff60796764f6b748bcb54108ca6a4e0e67.png)

![image](https://us1.discourse-cdn.com/grafana/original/3X/9/7/972667be11bdf5d3ccc8411523652fdf0bd90ee2.png)

![image](https://us1.discourse-cdn.com/grafana/original/3X/d/4/d4235efe2cf6b5bc042458d4c6b2ad0c48d0abce.png)

Any ideas on why this is happening? I am actually using the UTC timezone on my computer and grafana displays everything correctly.

Thank you for your help!!

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [February 5, 2024, 6:26pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713/2 "2024-02-05T18:26:51Z")

</div>

General rule: data must be saved in UTC timezone.  
Then each client (Grafana instance) will apply own local timezone (e. g. Grafana uses browser timezone).

Data saved in non utc timezone = many problems: search forum for issues e. g. my data are x hours behind/ahead.

So now is connected to your hardware, because that’s a source of your user timezone.

Of course you can overwrite default Grafana behaviour, e.g. hardcode dashboard timezone to hardocded value.

---

<div class="post-metadata">

**Author:** ![programat3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/programat3/32/42088_2.png) [@programat3](https://community.grafana.com/u/programat3)\
**Post date:** [February 5, 2024, 6:34pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713/3 "2024-02-05T18:34:07Z")

</div>

Thanks for the reply!!  
Right now the data is stored as UTC, and is queried correctly through utc. My theory is that somehow the **from** value is being obtained not through the default timezone, but through my pc’s timezone. How can I do what you mentioned at the end?

> ‘hardcode dashboard timezone to hardocded value.’

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [February 5, 2024, 7:07pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713/4 "2024-02-05T19:07:09Z")

</div>

Dashboard settings:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/6/56c2edd6d1e56f01ec114de384fe0381d1266be0.png)

> My theory is that somehow the **from** value is being obtained not through the default timezone, but through my pc’s timezone

Please use query inspector and prove that. This theory doesn’t looks correct (but maybe you are using some crazy panel type, 3rd party plugin, …), which doesn’t implement it in the right way.

---

<div class="post-metadata">

**Author:** ![programat3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/programat3/32/42088_2.png) [@programat3](https://community.grafana.com/u/programat3)\
**Post date:** [February 5, 2024, 7:15pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713/5 "2024-02-05T19:15:21Z")

</div>

Thanks again!  
There is a screenshot of the query inspector,

 ![Captura de pantalla 2024-02-05 160944](https://us1.discourse-cdn.com/grafana/original/3X/8/f/8f8d4bb75e1ade898d58897ab92ebd8eb2c9b9bf.png)

A picture of the default timezone  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/7/a/7a7c44225d2fa4712d1a5cc0b427bf0ac4319b79.png)

I am currently using **infinity** plugin (my data is in json format) with the following query:

httpsstart\_ts=${\_\_from:date:YYYY-MM-DDTHH}:${\_\_from:date:mm}:${\_\_from:date:ss}&code=

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [February 5, 2024, 9:54pm UTC](https://community.grafana.com/t/how-to-disconnect-now-variable-from-hardware-timezone/113713/6 "2024-02-05T21:54:58Z")

</div>

Got it. Your problem is how to use advance date variable formatting, which will format value in UTC time zone. Check doc, search forum, e.g.:

> [@Can I get ${\_\_from:date} in UTC using the format I want?](https://community.grafana.com/t/can-i-get-from-date-in-utc-using-the-format-i-want/100878):
>
> Hi! I’m trying to get the \_\_from and \_\_to variables in a particular format: YYYY-MM-DD-HHmmss. I also need them to be in UTC timezone. I seem to be able to get either one or the other, but not both. I can get the format I want like this, but it is converted to my browser/local time (UTC+8:00): ${\_\_to:date:YYYY-MM-DD-HHmmss} and I can get it in UTC with this, but then the formatting is different: ${\_\_to:date:iso:YYYY-MM-DD-HHmmss} As shown in this screenshot:
