# Does anyone know a contrib-node that tracks Daylight Savings Dates?

**URL:** <https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839>\
**Category:** General\
**Created:** [11 December 2024 01:57 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839 "2024-12-11T01:57:06Z")\
**Posts on this page:** 9\
**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:** [11 December 2024 01:57 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/1 "2024-12-11T01:57:06Z")

</div>

Guys,

I have to do some time/date manipulation and want to make it more robust. DST dates do not change often but it does happen.

Does anyone know of a contrib node that can be used to pass a trigger to and it will give out a YES/No type response as to whether DST is in effect - and is kept current with DST changes as they happen ?

Craig

---

<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:** [11 December 2024 03:16 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/2 "2024-12-11T03:16:49Z")

</div>

Actually just realised i already have one -

> **[GitHub - rdmtc/node-red-contrib-sun-position: This is a ultimate Node-Red Timer, Sun, Moon and...](https://github.com/rdmtc/node-red-contrib-sun-position)**
>
> This is a ultimate Node-Red Timer, Sun, Moon and Blind flow control.

My only concern is there is nothing in there about keeping updated with DST changes as they occur - i assume he references some external site - but will pose the question

Craig

---

<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:** [11 December 2024 07:20 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/3 "2024-12-11T07:20:04Z")

</div>

> [@craigcurtin](#):
>
> there is nothing in there about keeping updated with DST changes as they occur

The DST information comes from the OS. It is not a node red issue. It is up to the user to keep his OS up to date.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 December 2024 10:14 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/4 "2024-12-11T10:14:44Z")

</div>

I use the sun-position nodes, they seem very reliable.

I use the actual sun position though rather than relying on GMT/DST. I use it to control the house lighting.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [11 December 2024 22:38 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/5 "2024-12-11T22:38:19Z")

</div>

[this one](https://worldtimeapi.org/) gives all information for a specific location as well 😉 .. in case you need the data elements

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/521332503a2b801b4773f753466a8f3fc14a48cf.png)

---

<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:** [12 December 2024 01:51 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/6 "2024-12-12T01:51:16Z")

</div>

Thanks Guys,

For context - our Power Company in Australia works off what they call NEM time - which is essentially AEDT but does not change for DST.

Therefore i need two paths in my code when parsing the times to account for whether we are in DST or not and then applying the appropriate offset.

I think the ones i am using will work OK - i essentially have an Initialisations page for all my flows - and have put it in there to check 10s after startup and then every minute during the day - it then sets a Global Variable for other routines to refer to DST: True/False.

Thanks for the pointers.

Craig

---

<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:** [12 December 2024 01:52 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/7 "2024-12-12T01:52:30Z")

</div>

Thats a nice call on the Curl call thanks - its amazing what free stuff is out there !

Craig

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [12 December 2024 10:15 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/8 "2024-12-12T10:15:31Z")

</div>

> [@craigcurtin](#):
>
> Curl call

Of course, anything that can be done using CURL can be done using a Node-RED request node as well. 🙂

---

<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:** [26 December 2024 10:15 UTC](https://discourse.nodered.org/t/does-anyone-know-a-contrib-node-that-tracks-daylight-savings-dates/93839/9 "2024-12-26T10:15:45Z")

</div>

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