Enhancement - #390 timestamps in annotations

- added new dateformat for annotations
- documented prev. added format modifiers H, N and S
This commit is contained in:
Federico Hernandez 2010-06-04 00:57:42 +02:00
parent 2bfd220714
commit 70e6f4f9f6
7 changed files with 68 additions and 25 deletions

View file

@ -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 ();
}
}