How do I stop P14M converting into P1Y2M
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Not a bug but a behavior I don't want it to do**
When I dayjs.duration(14, "Month").toISOString, it returns P1Y2M
**Expected behavior**
I want P14M instead.
**Information**
- Day.js Version V1.11.5
- OS: Windows 10
- Browser: Chrome
Contributor guide
Research direction
The issue names dayjs.duration(...).toISOString as the entry point. Investigate how that call converts a 14-month duration, then verify that the result is P14M instead of P1Y2M.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100