Message6818
A similar problem occurs when adding/substracting years when the
current day does not exist in the target year, i.e. only for
February 29th:
This works as expected:
>>> date.Date('2020-02-29') + date.Interval('+4y')
<Date 2024-02-29.00:00:00.000>
Here you can see the issue:
>>> date.Date('2020-02-29') + date.Interval('+1y')
<Date 2021-03-01.00:00:00.000>
>>> date.Date('2020-02-29') + date.Interval('-1y')
<Date 2019-03-01.00:00:00.000> |
|
Date |
User |
Action |
Args |
2019-11-13 15:39:56 | ThomasAH | set | messageid: <1573659596.55.0.0585221384707.issue2550858@roundup.psfhosted.org> |
2019-11-13 15:39:56 | ThomasAH | set | recipients:
+ ThomasAH, ber |
2019-11-13 15:39:56 | ThomasAH | link | issue2550858 messages |
2019-11-13 15:39:56 | ThomasAH | create | |
|