From ca21f2b28f9cdebc916fbd68cc23984b27439f90 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 17 Dec 2023 21:01:58 -0600 Subject: [PATCH] [Discord] Update to use datetime.UTC alias in TriviaBoard.answer method --- Discord/cogs/trivia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Discord/cogs/trivia.py b/Discord/cogs/trivia.py index 9a22dd6e69..25e0f90cc9 100644 --- a/Discord/cogs/trivia.py +++ b/Discord/cogs/trivia.py @@ -499,7 +499,7 @@ async def answer(self, player, answer = None): embeds = [ discord.Embed( description = "Time's up " + discord.utils.format_dt( - datetime.datetime.now(datetime.timezone.utc) + + datetime.datetime.now(datetime.UTC) + datetime.timedelta(seconds = self.seconds), style = 'R' ), @@ -593,7 +593,7 @@ async def answer(self, player, answer = None): self.message.embeds[0], discord.Embed( description = "Time's up " + discord.utils.format_dt( - datetime.datetime.now(datetime.timezone.utc) + + datetime.datetime.now(datetime.UTC) + datetime.timedelta(seconds = self.seconds), style = 'R' ),