Skip to content

Commit 8a984d5

Browse files
committed
datetime.utcnow is deprecated
1 parent 7a42470 commit 8a984d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jishaku/features/baseclass.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ def convert(
136136

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

139-
load_time: datetime = datetime.utcnow().replace(tzinfo=timezone.utc)
139+
load_time: datetime = datetime.now(timezone.utc)
140140

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

0 commit comments

Comments
 (0)