aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-12-15 10:03:19 -0800
committerGravatar MarkKoz <[email protected]>2019-12-15 11:20:25 -0800
commit832762add664186665904817e9ffc25f79ffb20a (patch)
treed4b6851eddaf7612ada2c2881de2d8fa4d1ba42e
parentFiltering: refactor scheduling of deletion task (diff)
Filtering: fix comparison between tz naïve and aware datetimes
-rw-r--r--bot/cogs/filtering.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index 4c94b73a5..02e3011ab 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -418,7 +418,7 @@ class Filtering(Cog, Scheduler):
now = datetime.datetime.utcnow()
for msg in response:
- delete_at = dateutil.parser.isoparse(msg['delete_date'])
+ delete_at = dateutil.parser.isoparse(msg['delete_date']).replace(tzinfo=None)
if delete_at < now:
await self.delete_offensive_msg(msg)