mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Bug Fix - recur.t
- Fixed bug that causes recur.t to fail. The "recur:" duration was being converted to days, whereas it should have been kept as a literal.
This commit is contained in:
parent
96be49b78d
commit
af606598fa
1 changed files with 3 additions and 1 deletions
|
@ -344,14 +344,16 @@ bool Att::validNameValue (
|
||||||
else if (name == "due" ||
|
else if (name == "due" ||
|
||||||
name == "until")
|
name == "until")
|
||||||
{
|
{
|
||||||
|
// Validate and convert to epoch.
|
||||||
if (value != "")
|
if (value != "")
|
||||||
value = Date (value).toEpochString ();
|
value = Date (value).toEpochString ();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (name == "recur")
|
else if (name == "recur")
|
||||||
{
|
{
|
||||||
|
// Just validate, don't convert to days.
|
||||||
if (value != "")
|
if (value != "")
|
||||||
value = (std::string) Duration (value);
|
Duration (value);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (name == "limit")
|
else if (name == "limit")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue