From ba48cc35d8cbfe666e473f0168c2cc6a62de7907 Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Sun, 29 Apr 2012 11:01:17 +0200 Subject: [PATCH] Bug #985 - The dates shown and accepted when editing are formated using dateformat even for annotations (dateformat.annotation is thus ignored). - No test is provided because it involves an external editor. Signed-off-by: Paul Beckingham --- src/commands/CmdEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 37ec34780..255bffea2 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -568,7 +568,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after) std::string::size_type gap = value.find (" -- "); if (gap != std::string::npos) { - Date when (value.substr (0, gap), context.config.get ("dateformat.annotation")); + Date when (value.substr (0, gap), context.config.get ("dateformat")); // This guarantees that if more than one annotation has the same date, // that the seconds will be different, thus unique, thus not squashed.