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
Describe the bug methods add and subtract with duration object doesn't take into account how many days in a month
add
subtract
// actual dayjs('2023-02-01').add(dayjs.duration(1, 'month')) === "2023-03-03" dayjs('2023-03-01').subtract(dayjs.duration(1, 'month')) === "2023-01-30"
Expected behavior
// expected dayjs('2023-02-01').add(dayjs.duration(1, 'month')) === "2023-03-01" dayjs('2023-03-01').subtract(dayjs.duration(1, 'month')) === "2023-02-01"
Information
The text was updated successfully, but these errors were encountered:
fix: Duration add/subtract iamkun#2336
36bdbd0
fix: iamkun#2336 combine add and subtract
b6a5a44
705d9b3
No branches or pull requests
Describe the bug
methods
add
andsubtract
with duration object doesn't take into account how many days in a monthExpected behavior
Information
The text was updated successfully, but these errors were encountered: