Closed krisgesling closed 3 years ago
Just realised I could simplify this and that the docstring was potentially leading people astray.
The timestamp passed in isn't "assumed" to be UTC. It is in an inherently timezone naive format - seconds since the epoch. Unless I'm mistaking something
Description
This fixes two issues:
datetime.fromtimestamp
by default will return a local time but was being treated as a UTC time.Type of PR
Testing
Run Mycroft on a regular desktop (your clock is most likely set correctly) ask "what time is the sunset"
CLA