summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/global.cc b/src/global.cc
index 4d2f97fc..f84eef65 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -377,6 +377,14 @@ void global_scope_t::normalize_report_options(const string& verb)
report_t& rep(report());
+ // jww (2009-02-09): These global are a hack, but hard to avoid
+ item_t::use_effective_date = rep.HANDLED(effective);
+
+ if (rep.HANDLED(date_format_)) {
+ output_datetime_format = rep.HANDLER(date_format_).str() + " %H:%M:%S";
+ output_date_format = rep.HANDLER(date_format_).str();
+ }
+
// jww (2008-08-14): This code really needs to be rationalized away
// for 3.0.