From aa60ea96766334aaf047516b69f944d15f727b7f Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 17 Aug 2024 00:24:58 +0100 Subject: [PATCH] Fix the time printout in /list Forgetting to store the outcome of .replace, and also not zeroing the smaller parts --- matchy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matchy/util.py b/matchy/util.py index 5e9c707..d284c0d 100644 --- a/matchy/util.py +++ b/matchy/util.py @@ -27,7 +27,7 @@ def get_next_datetime(weekday, hour) -> datetime: # Calculate the next datetime next_date = now + timedelta(days=days_until_next_week) - next_date.replace(hour=hour) + next_date = next_date.replace(hour=hour, minute=0, second=0, microsecond=0) return next_date