diff --git a/src/gnome/reconcile-view.c b/src/gnome/reconcile-view.c index e8ea5b1627..454c636051 100644 --- a/src/gnome/reconcile-view.c +++ b/src/gnome/reconcile-view.c @@ -328,6 +328,7 @@ gnc_reconcile_view_new (Account *account, GNCReconcileViewType type, if (auto_check) { + time64 statement_date_day_end = gnc_time64_get_day_end(statement_date); for (splits = qof_query_run (query); splits; splits = splits->next) { Split *split = splits->data; @@ -338,7 +339,7 @@ gnc_reconcile_view_new (Account *account, GNCReconcileViewType type, g_assert (recn == NREC || recn == CREC); if (recn == CREC && - gnc_difftime (trans_date, statement_date) <= 0) + gnc_difftime (trans_date, statement_date_day_end) <= 0) g_hash_table_insert (view->reconciled, split, split); } }