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:
parent
92be1d1bf0
commit
aa60ea9676
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ def get_next_datetime(weekday, hour) -> datetime:
|
||||||
|
|
||||||
# Calculate the next datetime
|
# Calculate the next datetime
|
||||||
next_date = now + timedelta(days=days_until_next_week)
|
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
|
return next_date
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue