From dcffd218a1e90ee9a1cdd295c0a3015edc395448 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 Jun 2010 03:18:32 -0400 Subject: Revised how Ledger handles the "current year" Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year. --- src/global.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/global.cc') diff --git a/src/global.cc b/src/global.cc index eb138f25..b1466cae 100644 --- a/src/global.cc +++ b/src/global.cc @@ -49,6 +49,8 @@ global_scope_t::global_scope_t(char ** envp) { TRACE_CTOR(global_scope_t, ""); + epoch = CURRENT_TIME(); + #if defined(HAVE_BOOST_PYTHON) if (! python_session.get()) { python_session.reset(new ledger::python_interpreter_t); -- cgit v1.2.3