mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
Task
- Added diagnostics for date assignments. Only duration assignment diagnostics were present.
This commit is contained in:
parent
f2a8e22866
commit
6d5d93d753
1 changed files with 5 additions and 1 deletions
|
@ -2019,15 +2019,19 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
|
|
||||||
Variant v;
|
Variant v;
|
||||||
e.evaluateInfixExpression (value, v);
|
e.evaluateInfixExpression (value, v);
|
||||||
context.debug (label + name + " <-- " + format ("{1}", v.get_date ()) + " <-- " + (std::string) v + " <-- " + value);
|
|
||||||
|
|
||||||
// If v is duration, add 'now' to it, else store as date.
|
// If v is duration, add 'now' to it, else store as date.
|
||||||
if (v.type () == Variant::type_duration)
|
if (v.type () == Variant::type_duration)
|
||||||
{
|
{
|
||||||
|
context.debug (label + name + " <-- " + format ("{1}", v.get_duration ()) + " <-- " + (std::string) v + " <-- " + value);
|
||||||
Variant now;
|
Variant now;
|
||||||
if (namedDates ("now", now))
|
if (namedDates ("now", now))
|
||||||
v += now;
|
v += now;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
context.debug (label + name + " <-- " + format ("{1}", v.get_date ()) + " <-- " + (std::string) v + " <-- " + value);
|
||||||
|
}
|
||||||
|
|
||||||
set (name, v.get_date ());
|
set (name, v.get_date ());
|
||||||
++modCount;
|
++modCount;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue