jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Fix until time without date in the past preventing repetition #148

Closed jensrossbach closed 4 months ago

jensrossbach commented 4 months ago

This pull request fixes an issue when the until time without an explicitly specified date (and the current date is assumed) is in the past. In this case, repetition never started. The fix adds 24 hours in this case, so that such until times are assumed to be on the next day instead of the current day.

The behavior when explicitly specifying a date stays unchanged with this change.