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

@@ -650,7 +650,7 @@ int TDB::gc ()
else if (s == Task::waiting)
{
// Wake up tasks that need to be woken.
Date wait_date (atoi (task->get ("wait").c_str ()));
Date wait_date (task->get_date ("wait"));
if (now > wait_date)
{
task->setStatus (Task::pending);