gnucash maint: Accommodate AQBanking < 6 use of GWEN_TIME instead of GWEN_DATE.
John Ralls
jralls at code.gnucash.org
Sun Jul 19 12:23:07 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/8ef370ce (commit)
from https://github.com/Gnucash/gnucash/commit/d546a617 (commit)
commit 8ef370ce8778bcb28c9b6b9f3431167289fd1e85
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Jul 19 09:22:45 2020 -0700
Accommodate AQBanking < 6 use of GWEN_TIME instead of GWEN_DATE.
Fixes TravisCI failure on Ubuntu 18.04.
diff --git a/gnucash/import-export/aqb/gnc-ab-utils.c b/gnucash/import-export/aqb/gnc-ab-utils.c
index a049b3efe..0199f17bb 100644
--- a/gnucash/import-export/aqb/gnc-ab-utils.c
+++ b/gnucash/import-export/aqb/gnc-ab-utils.c
@@ -90,11 +90,17 @@ struct _GncABImExContextImport
};
static inline time64
-gnc_gwen_date_to_time64 (const GWEN_DATE* date)
+gnc_gwen_date_to_time64 (const GNC_GWEN_DATE* date)
{
+#if AQBANKING_VERSION_INT >= 59900
return gnc_dmy2time64_neutral(GWEN_Date_GetDay(date),
GWEN_Date_GetMonth(date),
GWEN_Date_GetYear(date));
+#else
+ int month, day, year;
+ GWEN_Time_GetBrokenDownDate(date, &day, &month, &year);
+ return gnc_dmy2time64_neutral(day, month, year);
+#endif
}
void
Summary of changes:
gnucash/import-export/aqb/gnc-ab-utils.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list