From af606598fa02513a019c37c561cfe71e61bda6cf Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 18 Jun 2009 17:45:27 -0400 Subject: [PATCH] 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. --- src/Att.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Att.cpp b/src/Att.cpp index 75f3897fe..0124a208a 100644 --- a/src/Att.cpp +++ b/src/Att.cpp @@ -344,14 +344,16 @@ bool Att::validNameValue ( else if (name == "due" || name == "until") { + // Validate and convert to epoch. if (value != "") value = Date (value).toEpochString (); } else if (name == "recur") { + // Just validate, don't convert to days. if (value != "") - value = (std::string) Duration (value); + Duration (value); } else if (name == "limit")