From 2dac6a471483510dc09f5910e9722954210f433d Mon Sep 17 00:00:00 2001 From: profitroll Date: Sat, 26 Apr 2025 19:32:49 +0200 Subject: [PATCH] Fixed the goddamn timezone for event start check --- cogs/cog_register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/cog_register.py b/cogs/cog_register.py index 803f155..1390484 100644 --- a/cogs/cog_register.py +++ b/cogs/cog_register.py @@ -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 . 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)