Skip to content

fix: replace deprecated datetime.utcnow() with timezone-aware alternatives#162

Open
nightcityblade wants to merge 1 commit intosquaredev-io:mainfrom
nightcityblade:fix/issue-161
Open

fix: replace deprecated datetime.utcnow() with timezone-aware alternatives#162
nightcityblade wants to merge 1 commit intosquaredev-io:mainfrom
nightcityblade:fix/issue-161

Conversation

@nightcityblade
Copy link
Copy Markdown

Replaces all datetime.utcnow() calls with timezone-aware datetime.now(timezone.utc) equivalents across 5 files. Also removes unused pytz imports where the stdlib datetime.timezone is now sufficient.

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.

Use of Deprecated utcnow() or utcfromtimestamp() APIs

1 participant