- Fixed bug that prevented "task list start.after:1/1/2009" from
  working.  Big, nasty bug.
This commit is contained in:
Paul Beckingham 2009-07-18 00:49:04 -04:00
parent e5f2b0c7d1
commit e8fc210ab0
4 changed files with 119 additions and 4 deletions

View file

@ -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;