Change from deprecated gncEntrySetDate to gncEntrySetDateGDate.

Should gncEntrySetDateEntered() similarly be deprecated?
This commit is contained in:
Mike Evans 2017-05-21 15:23:25 +01:00
parent 3e9716626f
commit 78565f7939

View File

@ -707,12 +707,12 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
if (strlen (date) != 0) // If a date is specified in CSV 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! 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)); gncEntrySetDateGDate(entry, gnc_dmy2timespec (day, month, year));
gncEntrySetDateEntered(entry, gnc_dmy2timespec (day, month, year)); gncEntrySetDateEntered(entry, gnc_dmy2timespec (day, month, year));
} }
else else
{ {
gncEntrySetDate(entry, today); // TODO: DEPRECATED - use gncEntrySetDateGDate() instead! gncEntrySetDateGDate (entry, today);
gncEntrySetDateEntered(entry, today); gncEntrySetDateEntered(entry, today);
} }
// Remove escaped quotes // Remove escaped quotes