mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 20:30:45 -06:00
Bug 798946 - start/end of current/last quarter have off-by-one error
This commit is contained in:
1 parent
7a17d329ec
commit
a475172d8c
1 file changed
+1
-1
@@ -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]];
|
||||
|
||||
Reference in new issue
Block a user