Skip to content
New issue

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

Error in parsing array format date #2604

Open
hbalxzdl opened this issue Mar 13, 2024 · 1 comment · May be fixed by #2639
Open

Error in parsing array format date #2604

hbalxzdl opened this issue Mar 13, 2024 · 1 comment · May be fixed by #2639

Comments

@hbalxzdl
Copy link

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
@KostaProsenikov
Copy link

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 ?

@klm-turing klm-turing linked a pull request Apr 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants