Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Fix the time printout in /list
Browse files Browse the repository at this point in the history
Forgetting to store the outcome of .replace, and also not zeroing the smaller parts
  • Loading branch information
mdiluz committed Aug 16, 2024
1 parent 92be1d1 commit aa60ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aa60ea9

Please sign in to comment.