gnucash maint: Bug 795276 - Invalid date on price stops file from being parsed.

John Ralls jralls at code.gnucash.org
Tue Jun 12 17:56:36 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/c8861d46 (commit)
	from  https://github.com/Gnucash/gnucash/commit/91795052 (commit)



commit c8861d4666ff884812d2be1c786bde621e970b16
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Jun 12 14:53:27 2018 -0700

    Bug 795276 - Invalid date on price stops file from being parsed.
    
    Instead of reporting an error and declining to load the file (XML)
    or failing to enter a value (SQL) when a bad date is found in the
    database, use a 0 time stamp (1970-01-01 00:00:00 UTC). Adds a warning
    in SQL backends; there was one already in XML.



Summary of changes:
 libgnucash/backend/sql/gnc-sql-column-table-entry.cpp | 4 +++-
 libgnucash/backend/xml/gnc-entry-xml-v2.cpp           | 2 +-
 libgnucash/backend/xml/gnc-invoice-xml-v2.cpp         | 2 +-
 libgnucash/backend/xml/gnc-order-xml-v2.cpp           | 2 +-
 libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp         | 2 +-
 libgnucash/backend/xml/gnc-transaction-xml-v2.cpp     | 6 +++---
 libgnucash/backend/xml/io-gncxml-v1.cpp               | 2 +-
 po/POTFILES.in                                        | 1 +
 8 files changed, 12 insertions(+), 9 deletions(-)



More information about the gnucash-patches mailing list