CmdSummary: Show recent intervals that start later in day than first interval with :all

It was possible for `summary` command, when used with the :all hint, to
skip over any intervals that start later than the first interval in the
database.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2020-09-01 06:10:32 -05:00 committed by lauft
parent 4aa8489243
commit ae5e44c558
2 changed files with 15 additions and 1 deletions

View file

@ -121,7 +121,7 @@ int CmdSummary (
days_end = Datetime ();
}
for (Datetime day = days_start; day < days_end; day++)
for (Datetime day = days_start.startOfDay (); day < days_end; ++day)
{
auto day_range = getFullDay (day);
time_t daily_total = 0;