Merge John Ralls's 'bug798958' into stable.

This commit is contained in:
John Ralls 2025-02-07 15:30:18 -08:00
commit 5b08f8f35c

View File

@ -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]];