After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 532889 - Monthly scheduled payments preview shows wrong dates
Monthly scheduled payments preview shows wrong dates
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Scheduled Transactions
2.2.x
Other All
: Normal minor
: ---
Assigned To: Josh Sled
Josh Sled
Depends on:
Blocks: backport
 
 
Reported: 2008-05-13 04:39 UTC by Chris Wright
Modified: 2018-06-29 22:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First try (1.05 KB, patch)
2008-05-13 22:26 UTC, Andreas Köhler
committed Details | Review

Description Chris Wright 2008-05-13 04:39:20 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.
Comment 1 Andreas Köhler 2008-05-13 05:35:15 UTC
Do you have more than one active SX?  Please see whether this is a duplicate of bug 521505.
Thanks.
Comment 2 Chris Wright 2008-05-13 13:11:43 UTC
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.
Comment 3 Andreas Köhler 2008-05-13 22:26:34 UTC
Created attachment 110878 [details] [review]
First try

Please see whether this patch fixes the issue for you.
Comment 4 Christian Stimming 2008-10-26 14:38:57 UTC
The patch seems helpful to me. Committed as r17659.
Comment 5 John Ralls 2018-06-29 22:04:25 UTC
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.