diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-28 05:24:02 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:32 -0400 |
commit | 5a93d4819e5fc753352618b729e0fe45532166b9 (patch) | |
tree | 200220bfcc5642a9efd8847001aeac889ed79e7d /reconcile.cc | |
parent | c3c401ac0f43dfb3f71b818b45ef47578e6d390b (diff) | |
download | fork-ledger-5a93d4819e5fc753352618b729e0fe45532166b9.tar.gz fork-ledger-5a93d4819e5fc753352618b729e0fe45532166b9.tar.bz2 fork-ledger-5a93d4819e5fc753352618b729e0fe45532166b9.zip |
Reworked the way date/times are handled.
Diffstat (limited to 'reconcile.cc')
-rw-r--r-- | reconcile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reconcile.cc b/reconcile.cc index b56ebcf2..5b6dba24 100644 --- a/reconcile.cc +++ b/reconcile.cc @@ -44,7 +44,7 @@ void reconcile_transactions::flush() for (transactions_list::iterator x = xacts.begin(); x != xacts.end(); x++) { - if (! cutoff || std::difftime((*x)->date(), cutoff) < 0) { + if (! cutoff || (*x)->date() < cutoff) { switch ((*x)->state) { case transaction_t::CLEARED: cleared_balance += (*x)->amount; |