I have an appointment that has a start and end time of 23:00 and 23:59 respectively.
If the start and end date are 28th Oct. 2017, the appointment appears in the cell for the 29th.
If the start and end date are 29th Oct. 2017, the appointment doesn't appear at all.
If the start and end date are 30th Oct. 2017, the appointment appears in the correct cell.
29th October 2017 was when the clocks went forward in the UK. Perhaps this is effecting something?
Also, if the time is set before 23:00, the appointment appears in two cells in month view.
And when the appointment is in the wrong cell, day view shows the appointment as spanning the whole day.
This seems like a bug.
6 Answers, 1 is accepted
Can you please try applying the ToUniversalTime extension method to the Start/End DateTime. For example:
When using this method, the issue is not reproducible at my end.
I am looking forward to your confirmation whether this made a difference at your end as well.
Can you please confirm the version of the controls you are testing with as there was a similar issue(the original one which you have reported where the appointments appear in the wrong cell) which we have fixed? I would like to perform some additional tests on our side before confirming whether the behavior is a bug and try to find a workaround for you.
Thank you for the confirmation.
Actually, the behavior is different with the latest version of the controls(we had applied different fixes to the calendar in the past months). It seems that everything is working fine in MonthView(the events are properly rendered for the appropriate date they belong to). However, the behavior in DayView is not the expected one. In Android, if the appointment is present after 11pm on 29.10 - it is not rendered. The situation with iOS is even more unpleasant as all the appointments are moved with one hours behind on the 29th. With this in mind, indeed I can confirm that the behavior is a bug and there are some specifications on the 29th which we are not taking into consideration. You can track the progress of the issue on the following link from our feedback portal - Calendar: Appointments in DayView are not rendered correctly on 29.10. I have added some points to your account as well.
Have a great rest of the week.