Unit Tests
- Fixed problem with determination of 'due today', which should have used Date::sameDay, but was based on old midnight dates.
This commit is contained in:
@@ -396,7 +396,7 @@ int getDueState (const std::string& due)
|
|||||||
if (dt < rightNow)
|
if (dt < rightNow)
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
if (dt == thisDay)
|
if (rightNow.sameDay (dt))
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
int imminentperiod = context.config.getInteger ("due");
|
int imminentperiod = context.config.getInteger ("due");
|
||||||
|
|||||||
Reference in New Issue
Block a user