diff --git a/ChangeLog b/ChangeLog index 566dde826..2b73ee2a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ represents a feature release, and the Z represents a patch. the new "default.project" and "default.priority" configuration variables (thanks to Vincent Fleuranceau) + Task supports improved word-wrapping to the terminal width + + Bug: Now properly supports relative dates in filters (task list due:eom, + task list due:tomorrow, task list due:23rd ...) ------ old releases ------------------------------ diff --git a/html/task.html b/html/task.html index c1c3e76f6..feca286da 100644 --- a/html/task.html +++ b/html/task.html @@ -104,6 +104,9 @@ the new "default.project" and "default.priority" configuration variables (thanks to Vincent Fleuranceau).
diff --git a/src/Date.cpp b/src/Date.cpp
index f7378bbb3..67ac7e7c7 100644
--- a/src/Date.cpp
+++ b/src/Date.cpp
@@ -543,22 +543,35 @@ bool Date::isRelativeDate (const std::string& input)
else
today += (dow - today.dayOfWeek ()) * 86400;
- mT = today.mT;
+ int m, d, y;
+ today.toMDY (m, d, y);
+ Date then (m, d, y);
+
+ mT = then.mT;
return true;
}
else if (found == "today")
{
- mT = today.mT;
+ Date then (today.month (),
+ today.day (),
+ today.year ());
+ mT = then.mT;
return true;
}
else if (found == "tomorrow")
{
- mT = today.mT + 86400;
+ Date then (today.month (),
+ today.day (),
+ today.year ());
+ mT = then.mT + 86400;
return true;
}
else if (found == "yesterday")
{
- mT = today.mT - 86400;
+ Date then (today.month (),
+ today.day (),
+ today.year ());
+ mT = then.mT - 86400;
return true;
}
else if (found == "eom")
diff --git a/src/report.cpp b/src/report.cpp
index c3c928b28..c82abeaac 100644
--- a/src/report.cpp
+++ b/src/report.cpp
@@ -79,6 +79,7 @@ void filter (std::vector