mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Exclusion: Properly anchor < and > at midnight
This commit is contained in:
parent
95b09b4c60
commit
7f4a70d29e
1 changed files with 4 additions and 2 deletions
|
@ -164,13 +164,15 @@ Range Exclusion::rangeFromTimeBlock (
|
|||
{
|
||||
int hh, mm, ss;
|
||||
if (pig.getHMS (hh, mm, ss))
|
||||
return Range (start, Datetime (start.year (), start.month (), start.day (), hh, mm, ss));
|
||||
return Range (Datetime (start.year (), start.month (), start.day (), 0, 0, 0),
|
||||
Datetime (start.year (), start.month (), start.day (), hh, mm, ss));
|
||||
}
|
||||
else if (pig.skip ('>'))
|
||||
{
|
||||
int hh, mm, ss;
|
||||
if (pig.getHMS (hh, mm, ss))
|
||||
return Range (Datetime (start.year (), start.month (), start.day (), hh, mm, ss), end);
|
||||
return Range (Datetime (start.year (), start.month (), start.day (), hh, mm, ss),
|
||||
Datetime (end.year (), end.month (), end.day (), 0, 0, 0));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue