Skip to content

Commit

Permalink
[Discord] Update to use datetime.UTC alias in TriviaBoard.answer method
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 9e24f6a commit ca21f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Discord/cogs/trivia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
),
Expand Down Expand Up @@ -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'
),
Expand Down

0 comments on commit ca21f2b

Please sign in to comment.