Today I was strugling with the node red ‘time range switch’. I noticed it was switching at a different time I intended. After some research I came to the conclusion the timezone setting for Node RED was wrong even with the server timezone set correctly.

After figuring out the root cause setting the timezone in NodeRED solved the issue. To change the timezone in NodeRED add the following line to ‘settings.js’ (located in ‘$home/.node-red’):

1
process.env.TZ = "Europe/Brussels";

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website

This site uses Akismet to reduce spam. Learn how your comment data is processed.