CmdCalendar: Support due dates up to year 9999

This commit is contained in:
Tomas Babej 2021-01-24 04:19:13 -05:00
parent 22228547ca
commit 0234cd8122

View file

@ -172,7 +172,7 @@ int CmdCalendar::execute (std::string& output)
if (getPendingDate == true) if (getPendingDate == true)
{ {
// Find the oldest pending due date. // Find the oldest pending due date.
Datetime oldest (2037, 12, 31); Datetime oldest (9999, 12, 31);
for (auto& task : tasks) for (auto& task : tasks)
{ {
auto status = task.getStatus (); auto status = task.getStatus ();