mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #439 - dateformat.annotation not considered
- dateformat.annotation were not considered when doing annotation=sparse
This commit is contained in:
parent
445dc415d0
commit
af3f60cfeb
1 changed files with 4 additions and 1 deletions
|
@ -2712,7 +2712,10 @@ std::string getFullDescription (Task& task, const std::string& report)
|
|||
desc = "+" + desc;
|
||||
Att anno (annotations.back());
|
||||
Date dt (atoi (anno.name ().substr (11).c_str ()));
|
||||
std::string when = dt.toString (context.config.get ("dateformat"));
|
||||
std::string format = context.config.get ("dateformat.annotation");
|
||||
if (format == "")
|
||||
format = context.config.get ("dateformat");
|
||||
std::string when = dt.toString (format);
|
||||
desc += "\n" + when + " " + anno.value ();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue