# Time Range Node Feature Request

**URL:** <https://forums.losant.com/t/time-range-node-feature-request/4960>\
**Category:** Feature Request\
**Tags:** workflow\
**Created:** [March 6, 2023, 9:19am UTC](https://forums.losant.com/t/time-range-node-feature-request/4960 "2023-03-06T09:19:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisGM](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@ChrisGM](https://forums.losant.com/u/ChrisGM)\
**Post date:** [March 6, 2023, 9:19am UTC](https://forums.losant.com/t/time-range-node-feature-request/4960/1 "2023-03-06T09:19:58Z")

</div>

Feature request:

If using a start time at 23:00, and an end time at 06:00, the behaviour could carry overnight.  
In situations where End Time \< Start Time

Currently, it would be true at 23:00, and then false at 00:00

---

<div class="post-metadata">

**Author:** ![Erin\_Thompson](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/erin_thompson/32/501_2.png) [@Erin\_Thompson](https://forums.losant.com/u/Erin_Thompson)\
**Post date:** [March 6, 2023, 1:36pm UTC](https://forums.losant.com/t/time-range-node-feature-request/4960/2 "2023-03-06T13:36:24Z")

</div>

Hey @ChrisGM,

One way to do this instead of thinking about time overnight would be to say that you want the time between 00:00 to 06:00 and 23:00 to 00:00 hours per day. Another way to to say that would be any time **not** between 06:00 and 23:00 hours. Could you use the Time Range Node and set the days and the hours to be Start Time 06:00 and End Time 23:00 and then if that takes the false path then continue your workflow? Basically instead of always looking for the truth path, go off the false path. You could also handle this case by using multiple Time Range Nodes.

Would this work for your use case?

Thanks,  
Erin

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 6, 2023, 2:44pm UTC](https://forums.losant.com/t/time-range-node-feature-request/4960/3 "2023-03-06T14:44:49Z")

</div>

I like @Erin_Thompson’s proposed workaround of flipping the logic, where the Time Range Node checks for times between 06:00 and 23:00 instead, and the `false` path then becomes what would have been the `true` path for your desired behavior.

That said, I would expect what you are trying to do - checking for an overnight value from 23:00 to 06:00 - to work, especially since we are allowing you to provide that value in the node configuration. I’ve filed a bug ticket with our team and have asked them to prioritize it for our next release - though I can’t say for sure we can put a fix in place as it may lead to breaking changes in the node’s behavior for existing users. At the very least we will disallow entering such time range values in the future to avoid the confusion.

Thanks for bringing this to our attention.

---

<div class="post-metadata">

**Author:** ![ChrisGM](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@ChrisGM](https://forums.losant.com/u/ChrisGM)\
**Post date:** [March 7, 2023, 9:28am UTC](https://forums.losant.com/t/time-range-node-feature-request/4960/4 "2023-03-07T09:28:36Z")

</div>

Thanks @Erin_Thompson & @Dylan_Schuster,

I like the suggestion of flipping the times and using the false path, and can confirm this works well!

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [March 30, 2023, 7:45pm UTC](https://forums.losant.com/t/time-range-node-feature-request/4960/5 "2023-03-30T19:45:45Z")

</div>

Hi @ChrisGM, just wanted to let you know this has been fixed - the Time Range Node should now work as expected when handed “overnight” start and end times (a start time of 23:59 or earlier and an end time between 00:00 and the start time).

To use the example from your original post, given a Start Time of 23:00 and an End Time of 06:00, the time 00:00 will now resolve as `true`.

Thanks again for the feedback!

---

<div class="post-metadata">

**Author:** ![ChrisGM](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@ChrisGM](https://forums.losant.com/u/ChrisGM)\
**Post date:** [March 30, 2023, 7:58pm UTC](https://forums.losant.com/t/time-range-node-feature-request/4960/6 "2023-03-30T19:58:43Z")

</div>

Thanks @Sebastian_Turner

I have another question on the timings. (Maybe another ticket)  
Inside the edge controller, daylight savings doesn’t seem to be factored in. My timings are now 1 hour out.  
Have you come across this before?
