csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
789 stars 171 forks source link

Fix timezone-aware datetimes #320

Closed eumiro closed 4 years ago

eumiro commented 4 years ago

This adds a tzinfo to all datetime objects (default UTC) and consolidates the conversions between the formats (works in Python 3.7+ just like the whole pyowm).

-Fixes #319

eumiro commented 4 years ago

Sorry, some tests didn't run well, will fix that later.