From b93b055a06bacb46c12ce0dfe276dd12bf2c9a86 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Mon, 22 Apr 2024 02:32:37 +0200 Subject: [PATCH] make utc datetime now naive --- bot/src/cogs/galtinn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/cogs/galtinn.py b/bot/src/cogs/galtinn.py index ab879c7..64a9863 100644 --- a/bot/src/cogs/galtinn.py +++ b/bot/src/cogs/galtinn.py @@ -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