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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user