Skip to content

Commit

Permalink
[Discord] Update to use datetime.UTC alias in Bot.shutdown_tasks method
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 7bfdc75 commit a672aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ async def restart_tasks(self, channel_id, message_id):

async def shutdown_tasks(self):
# Save uptime
now = datetime.datetime.now(datetime.timezone.utc)
now = datetime.datetime.now(datetime.UTC)
uptime = now - self.online_time
with contextlib.suppress(asyncpg.UndefinedTableError):
# Table might not have been created yet for CI
Expand Down

0 comments on commit a672aa1

Please sign in to comment.