dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Error in parsing array format date

Open hbalxzdl opened this issue 1 year ago • 1 comments

Describe the bug

import dayjs from 'dayjs'
import arraySupport from 'dayjs/plugin/arraySupport'
dayjs.extend(arraySupport)

use:
dayjs([2010, 1, 14]).format('YYYY/MM/DD')) return  2010/02/14

Expected behavior

dayjs([2010, 1, 14]).format('YYYY/MM/DD')) return  2010/01/14

Information

  • Day.js Version 1.11.8
  • OS: Mac OS
  • Browser: Google Chrome v115
  • Time zone: Eastern Daylight Time

hbalxzdl avatar Mar 13 '24 09:03 hbalxzdl

I also noticed similar behavior about parsing dates yesterday with the format: "DD.MM.YYYYTHH:mm:ss:SSS" . Is this going to be fixed, or should we switch again to another library ?

KostaProsenikov avatar Apr 09 '24 05:04 KostaProsenikov