# How to keep the GMT timezone in X axis

**URL:** <https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884>\
**Category:** Dashboard\
**Created:** [30 March 2020 09:29 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884 "2020-03-30T09:29:20Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 11:12 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884/21 "2020-03-30T11:12:34Z")

</div>

> [@shadow](#):
>
> if i get the local time zone and subtract it from the timestamp and pass it the the chart node, in this way maybe it's the better solution

If you do that then the data for 'now' will either be off the front of the chart or there will be a gap between the edge of the data and the right hand side of the chart.

Another solution if you don't want the whole machine running in UTC is to run a virtual machine configured for UTC and run the browser in that.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 11:14 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884/22 "2020-03-30T11:14:55Z")

</div>

Aha! How about this

> <https://stackoverflow.com/questions/26099858/change-timezone-of-browser>

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 March 2020 17:49 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884/23 "2020-03-30T17:49:50Z")

</div>

In theory we could add an option to display the timestamp in UTC. Would need some thinking about to make sure it doesn't interfere with other options, but could be done.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 March 2020 20:44 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884/24 "2020-03-30T20:44:04Z")

</div>

I have pushed an update to dashboard master with an extra option to set X-axis to GMT.

---

<div class="post-metadata">

**Author:** ![shadow](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@shadow](https://discourse.nodered.org/u/shadow)\
**Post date:** [31 March 2020 10:15 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884/25 "2020-03-31T10:15:13Z")

</div>

> [@Colin](#):
>
> If you do that then the data for 'now' will either be off the front of the chart or there will be a gap between the edge of the data and the right hand side of the chart.

you mean like this (in red circles) ![node red question](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a4aeddd252187316ccc82563650d4af3c3f228fe.png)

and for the link "change timezone of browser" that seems helpful  
thank you so much for your help 😇 😍  
(PS: i couldn't replay to your messages because of the limit number of message for the first day here, just wanted to say thank you ) )

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 April 2020 10:15 UTC](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884/26 "2020-04-30T10:15:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/how-to-keep-the-gmt-timezone-in-x-axis/23884.md?page=1)
