mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #946
- Fixed bug #946, which caused 'edit' command problems when 'dateformat.annotation' did not contain any date elements (thanks to Tuomas Toivola).
This commit is contained in:
parent
99e058cbe7
commit
948bbe8745
3 changed files with 7 additions and 2 deletions
|
@ -204,12 +204,12 @@ std::string CmdEdit::formatTask (Task task)
|
|||
for (anno = annotations.begin (); anno != annotations.end (); ++anno)
|
||||
{
|
||||
Date dt (strtol (anno->first.substr (11).c_str (), NULL, 10));
|
||||
before << " Annotation: " << dt.toString (context.config.get ("dateformat.annotation"))
|
||||
before << " Annotation: " << dt.toString (context.config.get ("dateformat"))
|
||||
<< " -- " << anno->second << "\n";
|
||||
}
|
||||
|
||||
Date now;
|
||||
before << " Annotation: " << now.toString (context.config.get ("dateformat.annotation")) << " -- \n";
|
||||
before << " Annotation: " << now.toString (context.config.get ("dateformat")) << " -- \n";
|
||||
|
||||
// Add dependencies here.
|
||||
std::vector <std::string> dependencies;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue