mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 14:07:21 +02:00
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:
parent
483c1b5787
commit
6706d1b955
3 changed files with 11 additions and 11 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue