mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Bug Fix - #206
- Fixed bug that prevented "task list start.after:1/1/2009" from working. Big, nasty bug.
This commit is contained in:
parent
e5f2b0c7d1
commit
e8fc210ab0
4 changed files with 119 additions and 4 deletions
|
@ -557,7 +557,7 @@ bool Att::match (const Att& other) const
|
|||
}
|
||||
else if (which == "date")
|
||||
{
|
||||
Date literal ((time_t)::atoi (mValue.c_str ()));
|
||||
Date literal (mValue.c_str (), context.config.get ("dateformat", "m/d/Y"));
|
||||
Date variable ((time_t)::atoi (other.mValue.c_str ()));
|
||||
if (other.mValue == "" || ! (variable < literal))
|
||||
return false;
|
||||
|
@ -587,7 +587,7 @@ bool Att::match (const Att& other) const
|
|||
}
|
||||
else if (which == "date")
|
||||
{
|
||||
Date literal ((time_t)::atoi (mValue.c_str ()));
|
||||
Date literal (mValue.c_str (), context.config.get ("dateformat", "m/d/Y"));
|
||||
Date variable ((time_t)::atoi (other.mValue.c_str ()));
|
||||
if (! (variable > literal))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue