Enhancement
- Clarify the dateformat related variables for 'task information'.
This commit is contained in:
committed by
Paul Beckingham
parent
84e1d0e7d2
commit
ba992a631e
@@ -109,6 +109,7 @@ std::string Config::_defaults =
|
||||
"# Dates\n"
|
||||
"dateformat=m/d/Y # Preferred input and display date format\n"
|
||||
"dateformat.holiday=YMD # Preferred input date format for holidays\n"
|
||||
"dateformat.info=m/d/Y H:N:S # Preferred display date format for information\n"
|
||||
"dateformat.report=m/d/Y # Preferred display date format for reports\n"
|
||||
"dateformat.annotation=m/d/Y # Preferred display date format for annotations\n"
|
||||
"weekstart=Sunday # Sunday or Monday only\n"
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -129,6 +129,7 @@ int CmdShow::execute (std::string& output)
|
||||
" dateformat"
|
||||
" dateformat.annotation"
|
||||
" dateformat.holiday"
|
||||
" dateformat.info"
|
||||
" dateformat.report"
|
||||
" debug"
|
||||
" default.command"
|
||||
|
||||
Reference in New Issue
Block a user