dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Incorrect Day of Year

Open karanbalani opened this issue 5 years ago • 0 comments

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)]

image

karanbalani avatar May 03 '21 15:05 karanbalani