Skip to content

Commit

Permalink
Subtract dates not datetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss committed Nov 6, 2023
1 parent 67344a0 commit 892253d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/utils/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ def get_utc_datetime(input_datetime: datetime):


def get_days_from_range(start_time: datetime, end_time: datetime) -> List[datetime]:
return [start_time + timedelta(days=x) for x in range((end_time - start_time).days + 1)]
return [start_time + timedelta(days=x) for x in range((end_time.date() - start_time.date()).days + 1)]

0 comments on commit 892253d

Please sign in to comment.