gnucash maint: Fix transaction post_date being set to midnight local.

John Ralls jralls at code.gnucash.org
Thu Apr 30 15:20:56 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/b4177bc6 (commit)
	from  https://github.com/Gnucash/gnucash/commit/1e598191 (commit)



commit b4177bc60abc1ed60a2d80a791376680493c0659
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Apr 30 11:30:03 2020 -0700

    Fix transaction post_date being set to midnight local.
    
    Reported for Invoices on gnucash-user. Checked all other uses of
    xaccTransSetPostDateSecs(), fixed the ones that weren't passing an
    already normalized time64. For Invoices change the post_date to also be
    normalized so that it stays the same as the transaction post_date. That
    also protects it from the displayed date changing depending on timezone.
    
    The python binding invoice post_time test had to be changed to match.



Summary of changes:
 bindings/python/tests/test_business.py        | 6 +++---
 gnucash/gnome-utils/dialog-transfer.c         | 2 +-
 gnucash/gnome-utils/gnc-tree-view-split-reg.c | 2 +-
 libgnucash/engine/gncInvoice.c                | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)



More information about the gnucash-patches mailing list