Skip to content

Commit

Permalink
CP-276 fix: fix myCalendar component, fix the error month number (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
cw1997 authored Nov 4, 2021
1 parent 976af68 commit 14c83b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/myFullCalendar/MyFullCalendar.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MyFullCalendar = ({ data }) => {
center: '',
end: 'prev,next', // will normally be on the right. if RTL, will be on the left
}}
titleFormat={(date) => `${date.date.year}${date.date.month} 月`}
titleFormat={(date) => `${date.date.year}${date.date.month + 1} 月`}
contentHeight="auto"
eventMouseEnter={eventMouseEnter}
eventMouseLeave={eventMouseLeave}
Expand Down

1 comment on commit 14c83b9

@vercel
Copy link

@vercel vercel bot commented on 14c83b9 Nov 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.