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:
Paul Beckingham 2010-08-11 01:30:16 +00:00
parent 7c8793b146
commit d2fe093107

View file

@ -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");