# Node red time zones offset in Dashboard chart

**URL:** <https://discourse.nodered.org/t/node-red-time-zones-offset-in-dashboard-chart/22469>\
**Category:** Dashboard\
**Created:** [2 March 2020 06:23 UTC](https://discourse.nodered.org/t/node-red-time-zones-offset-in-dashboard-chart/22469 "2020-03-02T06:23:14Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![unixneo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/unixneo/32/17441_2.png) [@unixneo](https://discourse.nodered.org/u/unixneo)\
**Post date:** [2 March 2020 08:19 UTC](https://discourse.nodered.org/t/node-red-time-zones-offset-in-dashboard-chart/22469/8 "2020-03-02T08:19:52Z")

</div>

Hi Henjoe,

Perhaps not helpful, but I had a similar issue (with charts in the dashboard) recently and I solved it by adding `moment` and `moment-timezone` libs in `settings.js` and including / requiring them in my functions and adjusting TZ that way.

Something like this in `settings.js`

```auto
functionGlobalContext: {
        moment:require('moment'),
        momenttz:require('moment-timezone')
    },

```

and then using these libs in my functions.

I'm sure my way is "kludgy" (as it often is with my impatient and "quick to fix and move on'" nature (my bad, I know!),

Looking forward to learning a better way from the experts here, for sure!

---

_[View the full topic](https://discourse.nodered.org/t/node-red-time-zones-offset-in-dashboard-chart/22469)._
