Accommodate AQBanking < 6 use of GWEN_TIME instead of GWEN_DATE.

Fixes TravisCI failure on Ubuntu 18.04.
This commit is contained in:
John Ralls
2020-07-19 09:22:45 -07:00
parent d546a617ad
commit 8ef370ce87

View File

@@ -90,11 +90,17 @@ struct _GncABImExContextImport
}; };
static inline time64 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), return gnc_dmy2time64_neutral(GWEN_Date_GetDay(date),
GWEN_Date_GetMonth(date), GWEN_Date_GetMonth(date),
GWEN_Date_GetYear(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 void