mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Accommodate AQBanking < 6 use of GWEN_TIME instead of GWEN_DATE.
Fixes TravisCI failure on Ubuntu 18.04.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user