We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please take a look at the following code:
moment(1369627200000).format('wo [week] YYYY') "22nd week 2013"
It looks correct. Applying a different timezone I get a wrong result:
moment(1369627200000).tz('America/New_York').format('wo [week] YYYY') "27th week 2013"
The text was updated successfully, but these errors were encountered:
This appears to be a valid bug, but it is only happening with the localized week of year formatters (w, wo, ww).
w
wo
ww
It appears to be working properly with the ISO week of year formatters (W, Wo, WW).
W
Wo
WW
Sorry, something went wrong.
@mj1856 in some case even using ISO week year formatter the result is wrong.
moment(1375070400000).format('Wo [week] YYYY') "31st week 2013" // correct
moment(1375070400000).tz('America/New_York').format('Wo [week] YYYY') "35th week 2013" // wrong
Any idea?
These should be working as expected in 0.1.0.
0.1.0
moment(1369627200000).format('wo [week] YYYY') // 22nd week 2013 moment(1369627200000).tz('America/New_York').format('wo [week] YYYY') // 22nd week 2013 moment(1375070400000).format('Wo [week] YYYY') // 30th week 2013 moment(1375070400000).tz('America/New_York').format('Wo [week] YYYY') // 31st week 2013
No branches or pull requests
Please take a look at the following code:
It looks correct. Applying a different timezone I get a wrong result:
The text was updated successfully, but these errors were encountered: