Wrong date is showing in calendar
MrFarhan opened this issue · comments
Muhammad Farhan commented
Bug Reports
Issue:
The wrong date is being shown in the calendar, I have added the 2022-08-31T18:23:00.000Z
date as the start date but it is showing the event on 31st August and 1st September as well.
Expected outcome
it should only show the event on 31 August
Codesendbox link (you can see line 21 of DemoApp.jsx:
https://codesandbox.io/s/fullcalendar-v4-react-forked-vxg0en?file=/src/DemoApp.jsx
Screenshot:
Muhammad Farhan commented
Is anyone looking into this issue?
Dylan Ferris commented
The event time is in UTC so it is converted to your local timezone by default. So it starts at 23:23 and it goes to the next day because the default duration is 1 hour.
You could set the end time of the event manually or change defaultTimedEventDuration
.