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:
Paul Beckingham 2009-06-18 17:45:27 -04:00
parent 96be49b78d
commit af606598fa

View file

@ -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")