timex
timex copied to clipboard
Timex.shift yields incorrect results for leap year after update
Steps to reproduce
- API function called - Timex.shift
- Arguments provided -
Timex.shift(~D[2020-02-29], years: 1)
Description of issue
- The same arguments on version 3.6.1 yields the correct result of
~D[2021-02-28]whereas the latest version 3.7.6 yields~D[2021-03-01]
As I see in the test the changes seem to be wanted. The question is why the previous behavior has been changed ? Thanks