TI-9: Task spanning over whole day should show up as taking 24:00 instead of 23:59

- Thanks to Tomas Babej.
This commit is contained in:
Paul Beckingham 2016-07-03 10:10:07 -04:00
parent b047800a30
commit cd59f27b2f
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
1.0.0 -
- TI-9 Task spanning over whole day should show up as taking 24:00 instead
of 23:59
(thanks to Tomas Babej).
- TI-10 The 'total' summands in the month report are not aligned with the
column name
(thanks to Tomas Babej).

View file

@ -220,7 +220,7 @@ int CmdHelp (const CLI& cli)
<< '\n'
<< " now Current date and time\n"
<< " today Current date at 0:00:00\n"
<< " sod, eod Current date at 0:00:00 and 23:59:59\n"
<< " sod, eod Current date at 0:00:00 and 24:00:00\n"
<< " yesterday Yesterday at 0:00:00\n"
<< " tomorrow Tomorrow at 0:00:00 (midnight tonight)\n"
<< " <day-of-week> Previous named day at 0:00:00\n"

View file

@ -683,7 +683,7 @@ Range getFullDay (const Datetime& day)
int d;
day.toYMD (y, m, d);
return Range (Datetime (y, m, d, 0, 0, 0),
Datetime (y, m, d, 23, 59, 59));
Datetime (y, m, d, 24, 0, 0));
}
////////////////////////////////////////////////////////////////////////////////