Fix the time printout in /list

Forgetting to store the outcome of .replace, and also not zeroing the smaller parts
This commit is contained in:
Marc Di Luzio 2024-08-17 00:24:58 +01:00
parent 92be1d1bf0
commit aa60ea9676

View file

@ -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