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:
@@ -891,7 +891,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);
|
||||
|
||||
Reference in New Issue
Block a user