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 returns next year instead of passed one when trying to parse date #1656
Comments
As I don't speak russian and have my problems with cyrillic characters, it is not so easy to find out, where this effect comes from. But as I found out with the help of google translator, there are 2 words for 'december': Can you explain what these 2 'decembers' mean? Using |
Hi, thank you for your reply I'll try to explain the difference between these two decembers FIrst one - декабрь is just a name of a month, but if you want to talk about a specific date декабрь changes to декабря Hope this explanation helps |
oh thank you; now I do understand he transformation of month names to the month number. So we have a hidden error in the customParseFormat plugin - the implementation misinterpreted the modulo function. I will prepare a PR and let's hope that it will be accepted soon. |
This error gets visible in the russion month names (issue iamkun#1656). Added test to test/locale/ru.test.js to show this error.
this is still relevant on 1.11.3! @iamkun pls take a look at the PR |
Describe the bug
I'm trying to parse some date strings in russian locale, but dayjs returns dates with passed year + 1, e.g. 2020 instead of 2019
Expected behavior
Dayjs returns date with correct year
Information
The text was updated successfully, but these errors were encountered: