# Where does NR reference time from?

**URL:** https://discourse.nodered.org/t/where-does-nr-reference-time-from/46160
**Category:** General
**Created:** [24 May 2021 14:12 UTC](https://discourse.nodered.org/t/where-does-nr-reference-time-from/46160 "2021-05-24T14:12:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [24 May 2021 14:12 UTC](https://discourse.nodered.org/t/where-does-nr-reference-time-from/46160/1 "2021-05-24T14:12:51Z")

</div>

Guys,

Just built a new VM - Ubuntu 20.04.

Initially timezone was left as default since changed to be Sydney Australia - Date command at the CLI returns the correct date and time.

However i have an inject node that is set to fire at 7AM each day and send me an email - currently i am getting this email at 5PM each day - which would be the equivalent GMT/UTC Zero time.

I have just restarted the box to see if that changes anything - but the question is - what native mechanism does NR use for scheduling ? Is it something internal - or does it just tap into Cron ? (as i have just investigated there and can not find anything setup)

Craig

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [24 May 2021 14:20 UTC](https://discourse.nodered.org/t/where-does-nr-reference-time-from/46160/2 "2021-05-24T14:20:15Z")

</div>

It doesn't do anything special, it will just use the system clock.

It will use the default system time zone (when is was started, so won't change if you update the default while it's running).

You can change the time zone using the TZ environment variable if you want, but again this needs to be set and in scope before starting node-red

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [24 May 2021 15:08 UTC](https://discourse.nodered.org/t/where-does-nr-reference-time-from/46160/3 "2021-05-24T15:08:54Z")

</div>

OK thanks - figured as much and have just performed a restart -now to see if allworks as expected at 7AM tomorrow (today)

Craig

---

<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: [23 July 2021 15:09 UTC](https://discourse.nodered.org/t/where-does-nr-reference-time-from/46160/4 "2021-07-23T15:09:03Z")

</div>

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