stefanwichmann / kelvin

Kelvin - The hue bot
MIT License
351 stars 37 forks source link

config schedule uses wrong time zone #87

Closed nikhgarg closed 3 years ago

nikhgarg commented 3 years ago

I'm in PT, my config file has my correct latitude/longitude, and my computer date-time is correct. However, Kelvin logs indicate time in BST, and so my lights change according to BST interpretation of the config file's beforesunrise/aftersunset. This is an issue because for me sunset is 02:00 BST.

nikhgarg commented 3 years ago

Sorry, investigated further and it turns out raspberry pi does not by default identify time zones. Changing the system time zone fixed the issue.