Skip to content

Commit

Permalink
Merge pull request #278 from leonelhenriquez/fix/months-buttons
Browse files Browse the repository at this point in the history
[Fix 🐛] update month display logic in Calendar component
  • Loading branch information
onesine authored Oct 14, 2024
2 parents 766ad82 + 3a6df93 commit 994a1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Calendar/Months.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Months = (props: Props) => {
}}
active={currentMonth === item}
>
{dateFormat(new Date(`2022-${item}-01`), "MMM", i18n)}
{dateFormat(new Date(2022, item - 1, 1), "MMM", i18n)}
</RoundedButton>
))}
</div>
Expand Down

0 comments on commit 994a1a8

Please sign in to comment.