Report date format

Added report.X.dateformat which gives each report the possibility
to have a custom format for the due dates.
This commit is contained in:
Federico Hernandez 2010-01-18 03:45:49 +01:00
parent 4f70969306
commit fccd0d6c96
5 changed files with 51 additions and 10 deletions

View file

@ -162,6 +162,7 @@ int runCustomReport (
Table table;
table.setTableWidth (context.getWidth ());
table.setDateFormat (context.config.get ("dateformat"));
table.setReportName (report);
foreach (task, tasks)
table.addRow ();
@ -360,7 +361,9 @@ int runCustomReport (
table.setColumnWidth (columnCount, Table::minimum);
table.setColumnJustification (columnCount, Table::left);
std::string format = context.config.get ("reportdateformat");
std::string format = context.config.get ("report." + report + ".dateformat");
if (format == "")
format = context.config.get ("reportdateformat");
if (format == "")
format = context.config.get ("dateformat");