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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user