gnucash unstable: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Thu Apr 12 18:20:53 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/4a97269e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/85cc574d (commit)
	 via  https://github.com/Gnucash/gnucash/commit/16ba1e39 (commit)
	from  https://github.com/Gnucash/gnucash/commit/b5ac8591 (commit)



commit 4a97269e4b0ea9afc213b7f6fb839895eb65f599
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Apr 12 15:16:29 2018 -0700

    Correct a g_log_level in test_gnc_pricedb_lookup_day.

commit 85cc574d5071d945bb6174b4ffa5f30037592842
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Apr 12 15:15:33 2018 -0700

    Prevent throw in gnc-pricedb.
    
    If a price lookup is given an invalid time64/timespec (i.e. INT64_MAX)
    then just return NULL instead of trying to find the nearest price.

commit 16ba1e39b13f90beb9f17afd32474e766480ff2d
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Apr 12 15:12:14 2018 -0700

    Bug 795080 - Some dates reset to 01/01/1970
    
    An odd corner case: BST apparently came off of DST at 23:00 26 Oct 2014,
    so midnight that day was ambiguous about being DST or not; that causes
    the local_date_time constructor to throw in spite of the tm.is_dst element
    being 0 (meaning pick standard time).
    
    Instead of just failing in that case, try constructing a local_date_time
    three hours later then adjust it back three hours. If *that* doesn't work
    then throw a std::invalid argument.



Summary of changes:
 libgnucash/engine/gnc-datetime.cpp         | 21 ++++++++++++++++-----
 libgnucash/engine/gnc-pricedb.c            |  1 +
 libgnucash/engine/test/utest-gnc-pricedb.c |  2 +-
 3 files changed, 18 insertions(+), 6 deletions(-)



More information about the gnucash-patches mailing list