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

unexpected value when parsing format "YYYY" #911

Closed
bkinnamon opened this issue May 20, 2020 · 1 comment
Closed

unexpected value when parsing format "YYYY" #911

bkinnamon opened this issue May 20, 2020 · 1 comment

Comments

@bkinnamon
Copy link

Describe the bug
A clear and concise description of what the bug is.

dayjs("2020", "YYYY").year() returns 2019

Expected behavior
A clear and concise description of what you expected to happen.

dayjs("2020", "YYYY").year() returns 2020

Information

  • Day.js Version: v1.8.27
  • OS: macOS 10.15.4
  • Browser: Chrome 81.0.4044.138
  • Time zone: GMT-04:00 EDT (Eastern Daylight Time)
@bkinnamon
Copy link
Author

Nevermind. I'm dumb.

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

1 participant