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

79 datetimeutcnow is deprecated as of python 312 #82

Merged
merged 6 commits into from
Dec 28, 2023

Conversation

igorbenav
Copy link
Owner

No description provided.

Mithun Thomas and others added 6 commits December 16, 2023 11:33
Updated datetime.utcnow() to datetime.now(timezone.utc) in multiple
modules and added timezone.utc to ensure consistent handling of time
across the application.
the application

Update datetime handling across the application to consistently utilize
UTC, ensuring uniformity and eliminating potential discrepancies due to
time zone differences.
awareness

Updated the datetime usage in multiple models to include timezone
awareness by importing 'UTC' and applying it to the default_factory.
Refactor datetime.utcnow() to datetime.now(timezone.utc)
@igorbenav igorbenav added the enhancement New feature or request label Dec 28, 2023
@igorbenav igorbenav self-assigned this Dec 28, 2023
@igorbenav igorbenav linked an issue Dec 28, 2023 that may be closed by this pull request
@igorbenav igorbenav merged commit ecf206d into main Dec 28, 2023
@igorbenav igorbenav deleted the 79-datetimeutcnow-is-deprecated-as-of-python-312 branch December 28, 2023 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datetime.utcnow() is deprecated as of Python 3.12
1 participant