Scheduler on month view show multi days event one day shorter

1 Answer 205 Views
Scheduler
Mykhailo
Top achievements
Rank 1
Mykhailo asked on 31 May 2022, 01:37 PM

Hi Telerik team.

I faced an issue with multi-days events displayed one day shorter on the month view than the endDate setup. For example event start date 2022-06-06T00:00:00 and end date 2022-06-08T00:00:00. I expect this event to take 3 full days, but on a calendar view, it shows as two only. In case add to end date 1-second event will take three days.

Here you can see a code example with this issue. https://stackblitz.com/edit/angular-k7xgds?file=src%2Fapp%2Fevents-utc.ts,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.module.ts

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 03 Jun 2022, 06:34 AM

Hi Mykhailo,

This is the expected behavior of the Scheduler. When working with JavaScript Date objects (Scheduler, Gantt components), the time part is also taken into consideration. That is why 2013-06-08T00:00:00 is considered midnight and the event doesn't occupy the Jun 8 slot. 

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Scheduler
Asked by
Mykhailo
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or