From 5a93d4819e5fc753352618b729e0fe45532166b9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Mar 2006 05:24:02 +0000 Subject: Reworked the way date/times are handled. --- reconcile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reconcile.cc') 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; -- cgit v1.2.3