devRoemer / node-red-contrib-time-switch

A node that switches on and off depending on the current time
MIT License
3 stars 0 forks source link

Time filtering based on the timezone applied #21

Open ahakobyan79 opened 1 year ago

ahakobyan79 commented 1 year ago

This node leaves an impression of a time filter/switch that would have an impact based on what time zone/lon/lat is selected above, but unfortunately it does not affect anything.

I'm not sure if this is a bug or that's how the node meant to work, but it would be nice to be able to select a location and filter the time based on the time zone of that location.

devRoemer commented 1 year ago

Your finding is right. Currently, the location is just used for the sunrise/sunset times. Manually entered times are always local times and independent of the lon/lat.

I could imagine adding a field for the timezone. This is more straight forward than trying to detect it by lon/lat