Test for Invoices XML dates not being INT64_MAX

To prevent errors being logged to the trace file when invoices are
saved test for the date values not being INT64_MAX which is an unset
date.
This commit is contained in:
Robert Fewell 2019-08-29 11:28:18 +01:00
parent d677e3c5df
commit 2bcb9bb1a5

View File

@ -83,7 +83,7 @@ maybe_add_string (xmlNodePtr ptr, const char* tag, const char* str)
static void
maybe_add_time64 (xmlNodePtr ptr, const char* tag, time64 time)
{
if (time)
if (time != INT64_MAX)
xmlAddChild (ptr, time64_to_dom_tree (tag, time));
}