From 6d5d93d7538be7e24dbba0e31beb8d07399fe57b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 30 May 2014 18:14:33 -0400 Subject: [PATCH] Task - Added diagnostics for date assignments. Only duration assignment diagnostics were present. --- src/Task.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Task.cpp b/src/Task.cpp index 9f9bf9947..a0662d198 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -2019,15 +2019,19 @@ void Task::modify (modType type, bool text_required /* = false */) Variant 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.type () == Variant::type_duration) { + context.debug (label + name + " <-- " + format ("{1}", v.get_duration ()) + " <-- " + (std::string) v + " <-- " + value); Variant now; if (namedDates ("now", now)) v += now; } + else + { + context.debug (label + name + " <-- " + format ("{1}", v.get_date ()) + " <-- " + (std::string) v + " <-- " + value); + } set (name, v.get_date ()); ++modCount;