Enhancement

- Implemented Record::get_date to eliminated the need to obtain a date
  as a string, then convert to time_t, then instantiate a Date.
This commit is contained in:
Paul Beckingham 2011-07-01 22:13:34 -04:00
parent 7d5f4fdfc7
commit 63f91c2f88
12 changed files with 54 additions and 42 deletions

View file

@ -197,7 +197,7 @@ int CmdCalendar::execute (std::string& output)
!task->hasTag ("nocal"))
{
++countDueDates;
Date d (strtol (task->get ("due").c_str (), NULL, 10));
Date d (task->get ("due"));
if (d < oldest) oldest = d;
}
}