Skip to content

fix: replace deprecated datetime.utcnow() and utcfromtimestamp() with timezone-aware alternatives#13

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

fix: replace deprecated datetime.utcnow() and utcfromtimestamp() with timezone-aware alternatives#13
fazalpsinfo-cmyk wants to merge 1 commit into
lipis:masterfrom
fazalpsinfo-cmyk:fix/datetime-utcnow

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

This PR replaces deprecated datetime functions:

  • datetime.utcnow()datetime.now(timezone.utc)
  • datetime.utcfromtimestamp()datetime.fromtimestamp(tz=timezone.utc)

These functions are deprecated in Python 3.12+ and will be removed in a future Python version.

If you find this useful, consider buying me a coffee: https://buymeacoffee.com/muhamedfazalps

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