Skip to content

Commit

Permalink
fix day range parsing (#382) (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjex authored Jan 22, 2024
1 parent 55d5487 commit 537c7f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cli/filtering.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ func parseDayRange(date string) (start time.Time, end time.Time, err error) {
return
}

start = startOfDay(day)
// we add -1 second so that the day range ends at 23:59:59
// i.e, the 'new day' begins at 00:00:00
start = startOfDay(day).Add(time.Second * -1)
end = start.AddDate(0, 0, 1)
return start, end, nil
}
Expand Down

0 comments on commit 537c7f7

Please sign in to comment.