GNOME Bugzilla – Bug 532889
Monthly scheduled payments preview shows wrong dates
Last modified: 2018-06-29 22:04:25 UTC
Please describe the problem: The preview for monthly scheduled transactions shows some incorrect dates. This is usually only the second occurrence in the series, and it is off by one. I have seen it on the day before it should have occurred and on the day after. Steps to reproduce: 1. Create a transaction. 2. Right click -> Scheduled Transaction. 3. Select monthly frequency. Actual results: The dates shown in the 4-month preview are sometimes incorrect -- one day before or after the correct date. This is almost always the second occurrence being off by one; for instance, if the first day is 6/1/2008, the second is shown as 6/31/2008. In this case, 7/1/2008 is not shown as a scheduled occurence. Expected results: I would expect that, if the first occurrence is on the first of the month, the preview would show the other occurrences on the first of their respective months. Does this happen every time? Yes. Other information: Changing the number of visible months in the preview fixes the error. For instance, switching from the default of four visible months to six shows the correct dates, and switching back to four shows the correct dates.
Do you have more than one active SX? Please see whether this is a duplicate of bug 521505. Thanks.
No, this is not when I have created the transaction. It is only in the preview. (I actually do not know how to access a calendar-style view of future transactions to check this.) And I do not need more than one active scheduled transaction.
Created attachment 110878 [details] [review] First try Please see whether this patch fixes the issue for you.
The patch seems helpful to me. Committed as r17659.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=532889. Please update any external references or bookmarks.