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’):
process.env.TZ = "Europe/Brussels";