-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
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
AllDay event is showing up in 2 days in MonthView mode #621
Comments
@amrtahlawi For all day event, you need to use UTC time and set the allDay field to true. There's detailed explanation in Event Source section in README. |
Thank you @twinssbc for the information. |
@amrtahlawi That's correct. |
Hello @twinssbc, Could you please provide any suggestion to be able to render on the calendar allday events which can take more than one day ( with no need to make one event per day )? For example, an event begins on Feb 12 00:00 and finish on Feb 14 23:59, it should display as 3 days on the calendar ( in the week view is displayed ok ) but on monthview and dayview it takes also the next day after finishing the event, no matter the endtime set:
|
All day event needs to convert from UTC date without any time part. For example,
|
Hi! thanks for your always kind reply! if I use:
then the calendar only diplays 2 days events ( 6 and 7 ) not 3 days event ( 6, 7, and 8 ) BUT looking at the code inside
this might be the reason why one-day-more or one-day-less is displayed on the monthview because if the Event startTime / endTime was created by a given time-zone user at -x hours ( or + x hours ), it might means a different UTC day ( depending the time difference ) Tested using the UTC conversion as on the 'else' statement only no matter if its allday or not ( removed above if - else ) and it seems to display the correct days on my case.
I did the same on the function THEN as the weekview it was always working ok, I was looking for the difference on that part of it might be a better approach to calculate 'startIndex' and 'endIndex' for allday events also on monthview and dayview? |
Hello,
I have some allDay events that are showing on the correct day and the next day when viewing the calendar in Month view. The dates good like this
start date: Tue Jul 13 2021 00:00:00 GMT-0400 (Eastern Daylight Time) and end Time: Tue Jul 13 2021 23:59:59 GMT-0400 (Eastern Daylight Time)
In the above example, the event is getting duplicated. It shows up on the 13th and on the 14th. This is only happening when the mode is a month. This issue does not show up when the mode is week or day.
The text was updated successfully, but these errors were encountered: