johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
395 stars 109 forks source link

use python built-in timezone instead of pytz-based offset calcuations #456

Open jar349 opened 11 months ago

jar349 commented 11 months ago

Closes #455

This PR changes the way that timestamps are converted from local time into UTC time. It uses Python's built-in timezone code instead the 3rd-party pytz module. In addition, I removed all of the code that was attempting to make use of the configured timezone because the configuration is currently hard-coded to "local". I added to TODO to remind us of our eventual intent to make use of the configuration.