Skip to content

Commit a475172

Browse files
committed
Bug 798946 - start/end of current/last quarter have off-by-one error
1 parent 7a17d32 commit a475172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgnucash/engine/gnc-option-date.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ gnc_relative_date_to_time64(RelativeDatePeriod period)
527527
{
528528
auto delta = (now.tm_mon >= acct_per.tm_mon ?
529529
( now.tm_mon - acct_per.tm_mon) % 3 :
530-
3 - ((acct_per.tm_mon - now.tm_mon) % 3));
530+
(3 - acct_per.tm_mon - now.tm_mon) % 3);
531531
now.tm_mon = now.tm_mon - delta;
532532
}
533533
[[fallthrough]];

0 commit comments

Comments
 (0)