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

2022-12-31 format to week error #6084

Open
18394526727 opened this issue Jan 7, 2023 · 1 comment
Open

2022-12-31 format to week error #6084

18394526727 opened this issue Jan 7, 2023 · 1 comment

Comments

@18394526727
Copy link

Describe the bug

moment.updateLocale("zh-cn", {
week: { dow: 6, doy: 12 }
})

moment("2022-12-31").format("YYYY-ww")
// '2022-01' ----error
moment("2023-01-01").format("YYYY-ww")
// '2023-01'
moment("2022-12-30").format("YYYY-WW")
// '2022-52'

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
moment("2022-12-31").format("YYYY-ww")
// '2022-52'

Screenshots
If applicable, add screenshots to help explain your problem.

image

@monikkacha
Copy link

looking on it

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