Skip to content

fix: replace deprecated datetime utcnow#4

Open
fazalpsinfo-cmyk wants to merge 1 commit into
PythonistaCafe:masterfrom
fazalpsinfo-cmyk:fix/datetime-utcnow
Open

fix: replace deprecated datetime utcnow#4
fazalpsinfo-cmyk wants to merge 1 commit into
PythonistaCafe:masterfrom
fazalpsinfo-cmyk:fix/datetime-utcnow

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Thank you for reviewing this fix!

Change: Replaced deprecated datetime.utcnow() with datetime.now(timezone.utc) for timezone-aware UTC timestamps.

datetime.utcnow() is deprecated in Python 3.12+ and will be removed in a future version. Using datetime.now(timezone.utc) produces a timezone-aware datetime, which is the recommended approach.

If you find this useful, consider buying me a coffee!


This is an automated contribution submitted on behalf of the open-source community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant