mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement - #390 timestamps in annotations
- added new dateformat for annotations - documented prev. added format modifiers H, N and S
This commit is contained in:
parent
2bfd220714
commit
70e6f4f9f6
7 changed files with 68 additions and 25 deletions
|
@ -2763,7 +2763,10 @@ std::string getFullDescription (Task& task, const std::string& report)
|
|||
foreach (anno, annotations)
|
||||
{
|
||||
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 ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue