Fixed the goddamn timezone for event start check
This commit is contained in:
@@ -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!"
|
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)
|
await user.setup_event_channel(self.bot, ctx.guild, guild, event, cache=self.bot.cache)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user