gnucash stable: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Fri Feb 7 18:34:29 EST 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/5b08f8f3 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a475172d (commit)
	from  https://github.com/Gnucash/gnucash/commit/d0ad95fe (commit)



commit 5b08f8f35c94e6bea32f136ca64b17513d732f62
Merge: d0ad95fe92 a475172d8c
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Feb 7 15:30:18 2025 -0800

    Merge John Ralls's 'bug798958' into stable.


commit a475172d8c2140f5790ed8595940bacf3df1cd97
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Jan 20 11:38:22 2025 -0800

    Bug 798946 - start/end of current/last quarter have off-by-one error

diff --git a/libgnucash/engine/gnc-option-date.cpp b/libgnucash/engine/gnc-option-date.cpp
index ee3c72b0d7..fdf954f9a6 100644
--- a/libgnucash/engine/gnc-option-date.cpp
+++ b/libgnucash/engine/gnc-option-date.cpp
@@ -527,7 +527,7 @@ gnc_relative_date_to_time64(RelativeDatePeriod period)
         {
             auto delta = (now.tm_mon >= acct_per.tm_mon ?
                           ( now.tm_mon - acct_per.tm_mon) % 3 :
-                          3 - ((acct_per.tm_mon - now.tm_mon) % 3));
+                          (3 - acct_per.tm_mon - now.tm_mon) % 3);
             now.tm_mon = now.tm_mon - delta;
         }
             [[fallthrough]];



Summary of changes:
 libgnucash/engine/gnc-option-date.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list