Skip to content

Changed datetime.utcnow() to datetime.now(UTC) due to deprecation#433

Open
dodofarm wants to merge 1 commit intoblacktwin:masterfrom
dodofarm:master
Open

Changed datetime.utcnow() to datetime.now(UTC) due to deprecation#433
dodofarm wants to merge 1 commit intoblacktwin:masterfrom
dodofarm:master

Conversation

@dodofarm
Copy link

This was causing a deprecation warning so I've removed all non timezone-aware objects.

DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).utcnow = datetime.utcnow()

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