From 6005e8decab13200b0f9052235f2ba37ca28aa54 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sun, 12 Nov 2006 11:06:30 +0000 Subject: [PATCH] Fix missing date when reconciling from HBCI as suggested by Konstantin Goudkov, #372929. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15110 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/import-export/hbci/gnc-hbci-getbalance.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/import-export/hbci/gnc-hbci-getbalance.c b/src/import-export/hbci/gnc-hbci-getbalance.c index 224413a7ed..7fc1c7f9ce 100644 --- a/src/import-export/hbci/gnc-hbci-getbalance.c +++ b/src/import-export/hbci/gnc-hbci-getbalance.c @@ -217,6 +217,10 @@ gnc_hbci_getbalance_finish (GtkWidget *parent, ti=AB_Balance_GetTime(booked_grp); if (ti) booked_tt = GWEN_Time_toTime_t (ti); + else + /* No time found? Use today because the HBCI query asked for + today's balance. */ + booked_tt = gnc_timet_get_day_start(time(NULL)); booked_val = AB_Balance_GetValue(booked_grp); if (booked_val) booked_value = AB_Value_GetValue (booked_val);