Skip to content

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

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

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

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Fix deprecated datetime.utcnow() and datetime.utcfromtimestamp() calls, which are deprecated in Python 3.12+.

Replaced with datetime.now(timezone.utc) and datetime.fromtimestamp(..., tz=timezone.utc) which are timezone-aware and the recommended approach.

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