dayjs
dayjs copied to clipboard
Incorrect Day of Year
Describe the bug
The dayOfYear() when called for the last day i.e. 31st Dec, of a leap year returns 365 as output.
Expected behavior
The dayOfYear() when called for last day of a leap year should return 366 as output.
Information
- Day.js Version: v1.10.4
- OS: macOS
- Browser: N/A
- Time zone: UTC+05:30 IST (Indian Standard Time)]
