From 73043b868eccc1d31e1ee72620ea4c93e5d12c5a Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 26 Dec 2012 03:08:05 -0500 Subject: [PATCH] Bug - Fix a bug where CmdEdit reported modifications to a date UDA when no modifications were made. --- src/commands/CmdEdit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 75f18dd7a..176c2eb09 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -685,7 +685,9 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string if (type != "") { std::string value = findValue (after, "\n UDA " + col->first + ":"); - if (task.get (col->first) != value) + if ((task.get (col->first) != value) && + (type == "date" && task.get (col->first) + != Date(value, dateformat).toEpochString ())) { if (value != "") {