mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
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:
parent
8dab95e200
commit
dcb4ae5497
3 changed files with 32 additions and 30 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue