mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - #250
- 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:
parent
a7196ca181
commit
dc9ba6d6b8
2 changed files with 3 additions and 1 deletions
|
@ -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 ------------------------------
|
||||
|
||||
|
|
|
@ -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 ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue