diff options
Fix monthly and yearly recurrence algorithms
The calculation of the year of the most recent occurrence for year dates before
the start date (disregarding the year) is incorrect for frequencies greater than
one. The most recent occurrence (for a date as mentioned) is either too far or
too close in the past. In most cases it does no harm because the most recent
ocurrence is in the past and does not span the date (i.e. there is no occurrence
on the day). But the following appointment shows the presence of the bug:
12/31/2019 @ 12:00 -> 01/01/2020 @ 12:00 {2Y} |new year
The occurence on 1 Jan 2020 is missing, because the most recent occurrence is
too far in the past (31 Dec 2018 instead of 31 Dec 2019). An occurrence appears
on 1 Jan 2021, because the most recent occurence is too close in the past (31
Dec 2020 instead of 31 Dec 2019).
A similar miscalculation affects the monthly rule as proved by
3/31/2019 @ 12:00 -> 4/1/2019 @ 11:00 {2M} |change of month
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test/data%252525252525252525252525253fid%252525252525252525252525253d1db1108e86ff41a5efc7268145a092fc36418d63%2525252525252525252525253fid%2525252525252525252525253d2ae30b223ecf79f92bf81af934c40dd645be274c%25252525252525252525253fid%25252525252525252525253d2ae30b223ecf79f92bf81af934c40dd645be274c&id2%25252525252525252525253db0ba01d2a7ef7d66b2ea95cdaa6e652015cbfc72%252525252525252525253fid%252525252525252525253d2ae30b223ecf79f92bf81af934c40dd645be274c%2525252525252525253fid%2525252525252525253d2ae30b223ecf79f92bf81af934c40dd645be274c&id2%2525252525252525253db0ba01d2a7ef7d66b2ea95cdaa6e652015cbfc72%25252525252525253fid%25252525252525253d2ae30b223ecf79f92bf81af934c40dd645be274c%252525252525253fid%252525252525253d2ae30b223ecf79f92bf81af934c40dd645be274c%2525252525253fid%2525252525253db0ba01d2a7ef7d66b2ea95cdaa6e652015cbfc72%25252525253fid%25252525253da0305d754fb03f87495c1f074f07ee5dbb2fbd6f%252525253fid%252525253da0305d754fb03f87495c1f074f07ee5dbb2fbd6f%2525253fid%2525253da0305d754fb03f87495c1f074f07ee5dbb2fbd6f&id2%2525253d5fbc499886e93f681f05b7219c7f844d17eaeb1d%25253fid%25253da0305d754fb03f87495c1f074f07ee5dbb2fbd6f&id2%25253d5fbc499886e93f681f05b7219c7f844d17eaeb1d%253fid%253da0305d754fb03f87495c1f074f07ee5dbb2fbd6f%3fid%3da0305d754fb03f87495c1f074f07ee5dbb2fbd6f?id=5fbc499886e93f681f05b7219c7f844d17eaeb1d')
0 files changed, 0 insertions, 0 deletions