Fixed missing astimezone() call

This commit is contained in:
2025-04-26 18:58:14 +02:00
parent b86d03a84f
commit e6036d033e

View File

@@ -154,8 +154,8 @@ class CogEvent(Cog):
await pycord_event.update(
self.bot.cache,
starts=start_date,
ends=end_date,
starts=start_date.astimezone(ZoneInfo("UTC")),
ends=end_date.astimezone(ZoneInfo("UTC")),
name=pycord_event.name if name is None else name,
thumbnail=pycord_event.thumbnail if thumbnail is None else processed_media[0],
)