mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Bug Fix
- Fixed bug that caused Att::match to assume a Date was not already converted to an epoch.
This commit is contained in:
parent
53155fcc34
commit
0440189b1d
2 changed files with 6 additions and 8 deletions
|
@ -236,7 +236,6 @@ bool Att::validNameValue (
|
|||
autoComplete (name, candidates, matches);
|
||||
|
||||
if (matches.size () == 0)
|
||||
// throw std::string ("Unrecognized attribute '") + name + "'";
|
||||
return false;
|
||||
|
||||
else if (matches.size () != 1)
|
||||
|
@ -559,7 +558,7 @@ bool Att::match (const Att& other) const
|
|||
}
|
||||
else if (which == "date")
|
||||
{
|
||||
Date literal (mValue);
|
||||
Date literal ((time_t)::atoi (mValue.c_str ()));
|
||||
Date variable ((time_t)::atoi (other.mValue.c_str ()));
|
||||
if (! (variable < literal))
|
||||
return false;
|
||||
|
@ -589,7 +588,7 @@ bool Att::match (const Att& other) const
|
|||
}
|
||||
else if (which == "date")
|
||||
{
|
||||
Date literal (mValue);
|
||||
Date literal ((time_t)::atoi (mValue.c_str ()));
|
||||
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