# Daylight savings ignored when using inject

**URL:** <https://discourse.nodered.org/t/daylight-savings-ignored-when-using-inject/49307>\
**Category:** General\
**Created:** [4 August 2021 07:21 UTC](https://discourse.nodered.org/t/daylight-savings-ignored-when-using-inject/49307 "2021-08-04T07:21:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmike](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrmike/32/11013_2.png) [@mrmike](https://discourse.nodered.org/u/mrmike)\
**Post date:** [4 August 2021 07:21 UTC](https://discourse.nodered.org/t/daylight-savings-ignored-when-using-inject/49307/1 "2021-08-04T07:21:57Z")

</div>

Hi,

Is it the intended behaviour for the inject timers to ignore daylight savings? The correct timestamp is actually logged by the inject node, but when I have set it to fire using the 'at a specific time' option, daylight savings are ignored and it fires an hour after intended.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [4 August 2021 07:50 UTC](https://discourse.nodered.org/t/daylight-savings-ignored-when-using-inject/49307/2 "2021-08-04T07:50:32Z")

</div>

Looks like the "at a specific time" setting uses the **cron** system...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd2989527800fe5489302a30f2033da6d81c11cd.png)

So a little Googling found this... (well, one of many references)...

> <https://superuser.com/questions/1352839/how-to-handle-daylight-savings-in-cron-jobs>

---

<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:** [4 August 2021 07:58 UTC](https://discourse.nodered.org/t/daylight-savings-ignored-when-using-inject/49307/3 "2021-08-04T07:58:03Z")

</div>

The inject node should use the local time on the machine running node red, so check the timezone setting on that machine.

---

<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:** [18 August 2021 07:58 UTC](https://discourse.nodered.org/t/daylight-savings-ignored-when-using-inject/49307/4 "2021-08-18T07:58:04Z")

</div>

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