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

dayjs('1-Jul') get an wrong result #1985

Open
DearDawn opened this issue Jul 12, 2022 · 1 comment
Open

dayjs('1-Jul') get an wrong result #1985

DearDawn opened this issue Jul 12, 2022 · 1 comment

Comments

@DearDawn
Copy link

DearDawn commented Jul 12, 2022

Describe the bug
dayjs('1-Jul') get an wrong result
Sat, 30 Jun 2001 16:00:00 GMT
image

Expected behavior
Thu, 30 Jun 2022 16:00:00 GMT

Information

  • Day.js Version [e.g. v1.0.0]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome 62]
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
@Bykiev
Copy link

Bykiev commented Jul 12, 2022

Hi, the issue was already discussed here
As new Date('1-Jul') will return 2001 year too, dayjs will return 2001 to deliver the same behavior.

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

No branches or pull requests

2 participants