Enhancement

- Clarify the dateformat related variables for 'task information'.
This commit is contained in:
Louis-Claude Canon 2012-05-16 14:42:11 +02:00 committed by Paul Beckingham
parent 84e1d0e7d2
commit ba992a631e
7 changed files with 20 additions and 21 deletions

View file

@ -76,12 +76,9 @@ int CmdInfo::execute (std::string& output)
undo = context.tdb2.undo.get_lines ();
// Determine the output date format, which uses a hierarchy of definitions.
// rc.report.<report>.dateformat
// rc.dateformat.report
// rc.dateformat.
std::string dateformat = context.config.get ("report.info.dateformat");
if (dateformat == "")
dateformat = context.config.get ("dateformat.report");
// rc.dateformat.info
// rc.dateformat
std::string dateformat = context.config.get ("dateformat.info");
if (dateformat == "")
dateformat = context.config.get ("dateformat");