Skip to content

Commit

Permalink
fix: save missed file
Browse files Browse the repository at this point in the history
  • Loading branch information
F authored and F committed Jul 3, 2024
1 parent 795e1c5 commit 3b0e62e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/datepicker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rehookify/datepicker",
"version": "6.6.2",
"version": "6.6.3",
"description": "The ultimate tool to create a date, range and time picker in your React applications.",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/datepicker/src/utils/create-months.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export var createMonths = (
{ minDate, maxDate }: DPDatesConfig,
): DPMonth[] => {
// 12 is a number of months in the year
const { M, Y } = getDateParts(offsetDate);
const { M, Y, D } = getDateParts(offsetDate);
const { Y: nY, M: nM } = getDateParts(newDate());

return Array(12)
.fill(0)
.map((_, i) => {
const $date = newDate(Y, i, 1);
const $date = newDate(Y, i, D);

return {
$date,
Expand Down

0 comments on commit 3b0e62e

Please sign in to comment.