make utc datetime now naive

This commit is contained in:
Leander Furumo committed 2024-04-22 02:32:37 +02:00
1 parent 4c4a35d4f7
commit b93b055a06
1 file changed
+1 -1
+1 -1
View File
@@ -412,7 +412,7 @@ class Galtinn(commands.Cog):
)
for result in results:
discord_id, expires = list(result)
if expires < datetime.now(timezone.utc):
if expires < datetime.now(timezone.utc).replace(tzinfo=None):
await self.bot.db.execute(
"""
DELETE FROM galtinn_verification