Skip to content

Commit

Permalink
[Discord] Update to use datetime.UTC alias in RSS task
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 8959770 commit 57eddd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Discord/cogs/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ async def check_feeds(self):
feed = record["feed"]

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

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

0 comments on commit 57eddd8

Please sign in to comment.