Bug 794767 - Dates default to 01/01/1970

This commit is contained in:
Geert Janssens 2018-04-14 18:39:18 +02:00
parent 3a44b368d4
commit 6093e5978f

View File

@ -1764,7 +1764,7 @@ gnc_invoice_update_window (InvoiceWindow *iw, GtkWidget *widget)
gncInvoiceGetActive (invoice));
time = gncInvoiceGetDateOpened (invoice);
if (!time)
if (time == INT64_MAX)
{
gnc_date_edit_set_time (GNC_DATE_EDIT (iw->opened_date),
gnc_time (NULL));