kendo-angular icon indicating copy to clipboard operation
kendo-angular copied to clipboard

[Scheduler] Recurrence "End On" date is a day after the selected date

Open svetq opened this issue 5 years ago • 4 comments

Describe the bug When editing the event series Recurrence "End On" date to a specific day and save these changes. If any of the edited events is opened afterwards then the Recurrence "End on" date will be a day later than the selected one.

To Reproduce Please check the following example: https://stackblitz.com/edit/angular-niog8n-eldomz?file=app%2Fapp.component.ts

  1. Edit the series from the example and set Recurrence End date to Sep 9th.
  2. Save the changes.
  3. Edit the series again and see that the Recurrence End date is Sep 10th.

Screenshots If applicable, add screenshots to help explain your problem.

svetq avatar Sep 17 '20 13:09 svetq

This behavior is mostly correct—otherwise the last occurrence would be on the day before the selected date.

It does however pose a problem for all-day events and other events that begin at midnight. These will get an extra occurrence as the UNTIL date is inclusive. This is the scenario from #2463, but can also be reproduced easily in the demos that don't have any time zones involved:

  1. Go to the Editing example
  2. Create a new all-day event by double-clicking on the all-day row.
  3. Set the event to repeat until a given date which the same as the start date (default).

The editor should look like this: image

Notice that the event appears twice: image

The KUI/jQuery Scheduler solves this by subtracting 1 second from the recurrence end date. We should consider our options here, but this seems like a viable solution. cc @Raisolution

tsvetomir avatar Sep 29 '20 07:09 tsvetomir

also reported in private support thread 1552915

svetq avatar Feb 11 '22 08:02 svetq

I can confirm that this is still an issue.

JakubHolovsky avatar Feb 14 '22 12:02 JakubHolovsky

Facing the same issue with weekly recurrence events.Support ticket 1552915

nileshzala005 avatar Feb 15 '22 10:02 nileshzala005