From dc9ba6d6b8d2396957028c8d7bd77dc20566cffb Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 7 Aug 2009 16:53:25 -0600 Subject: [PATCH] Bug Fix - #250 - Fixed bug #250 whereby rc.dateformat was not observed when parsing the creation date of an annotation (thanks to Federico Hernandez). --- ChangeLog | 2 ++ src/edit.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ff81c1245..c59594bc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,8 @@ Florian). + Fixed bug #257 where an extant ~/.taskrc file prevented the override and automatic creation of an alternate rc file (thanks to Zach Frazier). + + Fixed bug #250 whereby rc.dateformat was not observed when parsing the + creation date of an annotation (thanks to Federico Hernandez). ------ old releases ------------------------------ diff --git a/src/edit.cpp b/src/edit.cpp index 0661fbc28..d69861c15 100644 --- a/src/edit.cpp +++ b/src/edit.cpp @@ -499,7 +499,7 @@ static void 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)); + Date when (value.substr (0, gap), context.config.get ("dateformat", "m/d/Y")); std::stringstream name; name << "annotation_" << when.toEpoch (); std::string text = trim (value.substr (gap, std::string::npos), "\t ");