TW-1687: task add due:som appears to be interpreted as 'someday'

- Thanks to Alan Young.
This commit is contained in:
Paul Beckingham
2015-09-06 15:48:05 -04:00
parent c256096118
commit ff965c95d3
4 changed files with 72 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <algorithm>
#include <stdlib.h>
#include <time.h>
#include <text.h>
@@ -209,7 +210,7 @@ bool namedDates (const std::string& name, Variant& value)
}
else if (closeEnough ("later", name, minimum) ||
closeEnough ("someday", name, minimum))
closeEnough ("someday", name, std::max (minimum, 4)))
{
t->tm_hour = t->tm_min = t->tm_sec = 0;
t->tm_year = 138;