Skip to content

Commit

Permalink
[rift] update old datetime code to tz-aware utc
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyrkul committed Dec 28, 2023
1 parent 8c572f3 commit 37cfd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rift/rift.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import logging
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from functools import partial
from io import BytesIO
from itertools import starmap
Expand Down Expand Up @@ -920,5 +920,5 @@ async def on_raw_bulk_message_delete(self, payload: discord.RawBulkMessageDelete
if partial_message := self._partial(*ids):
to_delete.setdefault(partial_message.channel, []).append(partial_message.id)
await asyncio.gather(
*starmap(partial(purge_ids, now=datetime.utcnow()), to_delete.items())
*starmap(partial(purge_ids, now=datetime.now(timezone.utc)), to_delete.items())
)

0 comments on commit 37cfd05

Please sign in to comment.