Change from deprecated gncEntrySetDate to gncEntrySetDateGDate.

Again.
This commit is contained in:
Mike Evans 2017-05-21 15:49:30 +01:00
parent 9591c52bf5
commit e43e30d039

View File

@ -706,13 +706,14 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
timespecFromTime64 (&today, gnc_time (NULL)); // set today to the current date
if (strlen (date) != 0) // If a date is specified in CSV
{
qof_scan_date (date, &day, &month, &year); // FIXME: Must check for the return value of qof_scan_date!
gncEntrySetDate(entry, gnc_dmy2timespec (day, month, year));
GDate *date = g_date_new_dmy(day, month, year);
gncEntrySetDateGDate(entry, date);
gncEntrySetDateEntered(entry, gnc_dmy2timespec (day, month, year));
}
else
{
gncEntrySetDate(entry, today); // TODO: DEPRECATED - use gncEntrySetDateGDate() instead!
GDate *date = gnc_g_date_new_today();
gncEntrySetDateGDate(entry, date); // TODO: DEPRECATED - use gncEntrySetDateGDate() instead!
gncEntrySetDateEntered(entry, today);
}
// Remove escaped quotes