Skip to content

Commit

Permalink
datetime.utcnow is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Oct 24, 2024
1 parent 7a42470 commit 8a984d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jishaku/features/baseclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def convert(

return command_type(**self.kwargs)(self.callback)

load_time: datetime = datetime.utcnow().replace(tzinfo=timezone.utc)
load_time: datetime = datetime.now(timezone.utc)

def __init__(self, *args: typing.Any, **kwargs: typing.Any):
self.bot: BotT = kwargs.pop('bot')
self.start_time: datetime = datetime.utcnow().replace(tzinfo=timezone.utc)
self.start_time: datetime = datetime.now(timezone.utc)
self.tasks: typing.Deque[CommandTask] = collections.deque()
self.task_count: int = 0

Expand Down

0 comments on commit 8a984d5

Please sign in to comment.