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
Describe the bug When a date is parsed from text starting from the month of December, the year is parsed as +1 to the year.
import dayjs from "dayjs"; import customParseFormat from 'dayjs/plugin/customParseFormat'; import "dayjs/locale/ru"; dayjs.extend(customParseFormat); console.log(dayjs("01 декабря 2024", "DD MMMM YYYY", 'ru').year()); // 2025
Expected behavior The year should be parsed correct:
console.log(dayjs("01 декабря 2024", "DD MMMM YYYY", 'ru').year()); // 2024
Information
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When a date is parsed from text starting from the month of December, the year is parsed as +1 to the year.
Expected behavior
The year should be parsed correct:
Information
The text was updated successfully, but these errors were encountered: