mkb79 / Audible

A(Sync) Interface for internal Audible API written in pure Python.
https://audible.readthedocs.io
GNU Affero General Public License v3.0
306 stars 38 forks source link

Update datetime functions to use timezone awareness #440

Closed mkb79 closed 4 months ago

mkb79 commented 4 months ago

The commit updates all datetime.utcnow() to datetime.now(timezone.utc) for accurate timezone-aware handling within the 'audible' module. This is crucial to avoid issues related to DST and timezones disparities. By using details of the timezone offset, accurate comparisons and calculations are assured.