Date/ISO8601

- Changed the order of parsing from ISO, Date to Date, ISO. This favors the
  old dateformat mechanism more than the new one. One day this will flip.
This commit is contained in:
Paul Beckingham 2014-06-01 00:10:16 -04:00
parent 483c1b5787
commit 6706d1b955
3 changed files with 11 additions and 11 deletions

View file

@ -1577,13 +1577,13 @@ void Task::validate (bool applyDefault /* = true */)
{
std::string value = get ("recur");
ISO8601p p;
Duration d;
std::string::size_type i = 0;
if (! p.parse (value, i))
if (! d.parse (value, i))
{
i = 0;
Duration d;
if (! d.parse (value, i))
ISO8601p p;
if (! p.parse (value, i))
throw std::string (format (STRING_TASK_VALID_RECUR, value));
}
}