Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datetime functions to use timezone awareness #440

Merged
merged 1 commit into from
May 6, 2024

Conversation

mkb79
Copy link
Owner

@mkb79 mkb79 commented May 4, 2024

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.

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.
@mkb79 mkb79 added the refactoring Refactoring label May 4, 2024
@mkb79 mkb79 merged commit 8371418 into master May 6, 2024
29 checks passed
@mkb79 mkb79 deleted the refactor/utcnow-deprecation-refactor branch May 6, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant