Fixed the goddamn timezone for event start check

This commit is contained in:
2025-04-26 19:32:49 +02:00
parent 3b8da61b47
commit 2dac6a4714

View File

@@ -59,7 +59,7 @@ class CogRegister(Cog):
f"You are now registered for the event **{pycord_event.name}**.\n\nNew channel will be created for you and further instructions will be provided as soon as the event starts <t:{get_unix_timestamp(pycord_event.starts)}:R>. Good luck!"
)
if pycord_event.starts < datetime.now(tz=ZoneInfo("UTC")):
if pycord_event.starts.replace(tzinfo=ZoneInfo("UTC")) < datetime.now(tz=ZoneInfo("UTC")):
await user.setup_event_channel(self.bot, ctx.guild, guild, event, cache=self.bot.cache)