diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-14 03:18:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-14 03:23:09 -0400 |
commit | dcffd218a1e90ee9a1cdd295c0a3015edc395448 (patch) | |
tree | 5957423c9ef3d629461f413e163917626c300c9d /src/session.cc | |
parent | e2fa8c6145679231cda5ad6b6e7440f6f16e654a (diff) | |
download | fork-ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.tar.gz fork-ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.tar.bz2 fork-ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.zip |
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.
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/session.cc b/src/session.cc index 108a5f47..3b043952 100644 --- a/src/session.cc +++ b/src/session.cc @@ -60,9 +60,7 @@ void set_session_context(session_t * session) } session_t::session_t() - : flush_on_next_data_file(false), - current_year(CURRENT_DATE().year()), - journal(new journal_t) + : flush_on_next_data_file(false), journal(new journal_t) { TRACE_CTOR(session_t, ""); |