From 417a012b78fb62949b3ac7b9e01a5aa81af323e1 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Tue, 1 Jan 2019 17:53:02 +0100 Subject: [PATCH] Aqbanking import: Fix reconcile timestamps when importing balances. Used to be start-of-day, but needs to be day-neutral. --- gnucash/import-export/aqb/gnc-ab-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnucash/import-export/aqb/gnc-ab-utils.c b/gnucash/import-export/aqb/gnc-ab-utils.c index 306413d078..4b1b0367f3 100644 --- a/gnucash/import-export/aqb/gnc-ab-utils.c +++ b/gnucash/import-export/aqb/gnc-ab-utils.c @@ -940,13 +940,13 @@ bal_accountinfo_cb(AB_IMEXPORTER_ACCOUNTINFO *element, gpointer user_data) const GWEN_TIME *ti = AB_Balance_GetTime(booked_bal); if (ti) { - booked_tt = GWEN_Time_toTime_t(ti); + booked_tt = gnc_time64_get_day_neutral(GWEN_Time_toTime_t(ti)); } else { /* No time found? Use today because the HBCI query asked for today's * balance. */ - booked_tt = gnc_time64_get_day_start(gnc_time(NULL)); + booked_tt = gnc_time64_get_day_neutral(gnc_time(NULL)); } booked_val = AB_Balance_GetValue(booked_bal); if (booked_val)