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).
|
Florian).
|
||||||
+ Fixed bug #257 where an extant ~/.taskrc file prevented the override and
|
+ Fixed bug #257 where an extant ~/.taskrc file prevented the override and
|
||||||
automatic creation of an alternate rc file (thanks to Zach Frazier).
|
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 ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -499,7 +499,7 @@ static void parseTask (Task& task, const std::string& after)
|
||||||
std::string::size_type gap = value.find (" ");
|
std::string::size_type gap = value.find (" ");
|
||||||
if (gap != std::string::npos)
|
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;
|
std::stringstream name;
|
||||||
name << "annotation_" << when.toEpoch ();
|
name << "annotation_" << when.toEpoch ();
|
||||||
std::string text = trim (value.substr (gap, std::string::npos), "\t ");
|
std::string text = trim (value.substr (gap, std::string::npos), "\t ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue