Skip to content

Commit

Permalink
[Discord] Update to use datetime.UTC alias in Twitter task
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 18eaefb commit 8959770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/cogs/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async def check_tweets(self):
handle = record["handle"]

if record["ttl"] and datetime.datetime.now(
datetime.timezone.utc
datetime.UTC
) < record["last_checked"] + datetime.timedelta(
minutes = record["ttl"]
):
Expand Down

0 comments on commit 8959770

Please sign in to comment.