- Fixed bug #250 whereby rc.dateformat was not observed when parsing the
  creation date of an annotation (thanks to Federico Hernandez).
This commit is contained in:
Paul Beckingham 2009-08-07 16:53:25 -06:00
parent a7196ca181
commit dc9ba6d6b8
2 changed files with 3 additions and 1 deletions

View file

@ -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 ------------------------------

View file

@ -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 ");