We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shift/2
> start_datetime = ~U[2024-02-29 09:00:00Z] ~U[2025-02-28 09:00:00Z] > Timex.shift(start_datetime , months: 12) ~U[2025-03-01 09:00:00Z] > Timex.shift(start_datetime , months: 12) == Timex.shift(start_datetime , years: 1) false
The results of shifting 12 months and 1 year are the same.
The text was updated successfully, but these errors were encountered:
In a non-leap year, a person with a birthday on 2/29 has a birthday party on 2/28. But it's 3/1 in Timex.
Timex
timex/lib/datetime/datetime.ex
Line 566 in 22230a0
Sorry, something went wrong.
But it's a breaking change... I can just use my own fork of Timex.
No branches or pull requests
Steps to reproduce
Description of issue
The results of shifting 12 months and 1 year are the same.
The text was updated successfully, but these errors were encountered: