Skip to content

Commit

Permalink
Merge branch 'master' into fix_attribute_error_in_command_serialization
Browse files Browse the repository at this point in the history
Signed-off-by: plun1331 <plun1331@gmail.com>
  • Loading branch information
plun1331 committed Dec 1, 2023
2 parents c263211 + 70d615d commit 53388a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -190,6 +190,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2113](https://github.com/Pycord-Development/pycord/issues/2113))
- Fixed `Option` not working on bridge commands because `ext.commands.Command` doesn't
recognize them. ([#2256](https://github.com/Pycord-Development/pycord/pull/2256))
- Fixed offset-aware tasks causing `TypeError` when being prepared.
([#2271](https://github.com/Pycord-Development/pycord/pull/2271))
- Fixed `AttributeError` when serializing commands with `Annotated` type hints.
([#2243](https://github.com/Pycord-Development/pycord/pull/2243))

Expand Down
4 changes: 2 additions & 2 deletions discord/ext/tasks/__init__.py
Expand Up @@ -619,9 +619,9 @@ def _prepare_time_index(self, now: datetime.datetime = MISSING) -> None:
now
if now is not MISSING
else datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0)
).timetz()
)
for idx, time in enumerate(self._time):
if time >= time_now:
if time >= time_now.astimezone(time.tzinfo).timetz():
self._time_index = idx
break
else:
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
@@ -1,5 +1,5 @@
-r _.txt
pylint~=2.17.5
pylint~=3.0.2
pytest~=7.4.3
pytest-asyncio~=0.21.1
# pytest-order~=1.0.1
Expand Down

0 comments on commit 53388a0

Please sign in to comment.