Skip to content

Commit

Permalink
Update discord/ext/tasks/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: Jeon Hojin <[email protected]>
  • Loading branch information
SorameHato and Dorukyum authored Aug 15, 2023
1 parent fd32564 commit 5d0a048
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions discord/ext/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,7 @@ def _get_next_sleep_time(self) -> datetime.datetime:
)
else:
return datetime.datetime.combine(
datetime.datetime.now(
next_time.tzinfo
if next_time.tzinfo is not None
else datetime.timezone.utc
)
datetime.datetime.now(next_time.tzinfo or datetime.timezone.utc)
+ datetime.timedelta(days=1),
next_time,
)
Expand Down

0 comments on commit 5d0a048

Please sign in to comment.