Bug Fix - durations

- Fixed bug where durations (recur:x) were not properly parsed and
  validated.
- Fixed bug where the list output was being improperly parsed.
This commit is contained in:
Paul Beckingham 2009-06-19 00:52:48 -04:00
parent 8dab95e200
commit dcb4ae5497
3 changed files with 32 additions and 30 deletions

View file

@ -25,6 +25,7 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <iostream> // TODO Remove
#include <sstream>
#include <stdlib.h>
#include "text.h"
@ -337,8 +338,9 @@ bool Att::validNameValue (
else if (name == "recur")
{
// Just validate, don't convert to days.
Duration d;
if (value != "")
Duration (value);
d.parse (value);
}
else if (name == "limit")