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 dayOfYear produces incorrect results
My config dayjs
import dayjs from 'dayjs'; import ru from 'dayjs/locale/ru'; import customParseFormat from 'dayjs/plugin/customParseFormat'; import badMutable from 'dayjs/plugin/badMutable'; import quarterOfYear from 'dayjs/plugin/quarterOfYear'; import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; import isBetween from 'dayjs/plugin/isBetween'; import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; import dayOfYear from 'dayjs/plugin/dayOfYear'; import utc from 'dayjs/plugin/utc'; import relativeTime from 'dayjs/plugin/relativeTime'; dayjs.locale(ru); dayjs.extend(customParseFormat); dayjs.extend(badMutable); dayjs.extend(quarterOfYear); dayjs.extend(isSameOrBefore); dayjs.extend(isBetween); dayjs.extend(isSameOrAfter); dayjs.extend(dayOfYear); dayjs.extend(utc); dayjs.extend(relativeTime); export default dayjs;
Execution jest test
> 461 | expect(dayjs(`09.04.2020`, `DD.MM.YYYY`).dayOfYear()).toEqual(100);
Expected behavior Expected: 100 Received: 1
Information
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 1.10.6 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
dayOfYear produces incorrect results
My config dayjs
Execution jest test
Expected behavior
Expected: 100
Received: 1
Information
The text was updated successfully, but these errors were encountered: