jim-easterbrook / pywws

Python software for USB Wireless WeatherStations
https://pywws.readthedocs.io/
GNU General Public License v2.0
204 stars 62 forks source link

Fix bug in converting time zones #60

Closed jim-easterbrook closed 6 years ago

jim-easterbrook commented 6 years ago

The pytz library does not always work correctly when doing dt.replace(tzinfo=tz_object). The correct thing to do is tz_object.localize(dt).