Fix broken month in aqbanking<6 import

The used GWEN_Time_GetBrokenDownDate returns month in interval [0..11].
This commit is contained in:
Christian Stimming 2020-07-29 22:01:52 +02:00
parent d6ceec681e
commit b36a012512

View File

@ -99,7 +99,8 @@ gnc_gwen_date_to_time64 (const GNC_GWEN_DATE* date)
#else
int month, day, year;
GWEN_Time_GetBrokenDownDate(date, &day, &month, &year);
return gnc_dmy2time64_neutral(day, month, year);
/* GWEN_Time_GetBrokenDownDate returns localtime(3) format; month is [0..11] */
return gnc_dmy2time64_neutral(day, month + 1, year);
#endif
}