Recurring Dates and possible time zone issues

1 Answer 96 Views
Scheduler
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Bernd asked on 04 Jul 2022, 03:08 PM

Hi.

I have some questions regarding recurring dates. I have setup an example here:

https://stackblitz.com/edit/react-apb9rw?file=app%2Fmain.tsx,app%2Fdata.ts

As you can see in my data, the recurring events should start in the week that is being displayed when you open the scheduler page. They are timed so that all events should start at midnight CET, so I put the UTC-date to 10 pm UTC because CET is currently 2 hours ahead of UTC.

The issue is they don't show at the day they are scheduled, they show a week later and the weekday before they should show. So for example the allDay item "Sunday Item" which is scheduled to start on Sunday, 9th July 00:00, is showing week later on Saturday and the one that should be scheduled for Monday is showing on the next Sunday. That counts for non-Allday items and all day items. I'm not sure what I'm doing wrong here, maybe it's my math?

It would be important for me that at least the non-allDay items start at midnight on the correct day. I could get around the allDay-items issue by maybe choosing a different time but in the end it should work as expected.

Thanks as always,

Greetings,

Bernd

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 06 Jul 2022, 10:22 AM

Hello Bernd,

Thank you for providing an example demonstrating the issue.

I have forwarded the issue to the developers team and they have confirmed that this is a bug with the current implementation. I have logged an issue for it:

For bringing the issue to our attention, you will find your Telerik Points updated.

Please excuse us for any inconvenience cause by this and if other questions arise, feel free to contact us again.

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
commented on 06 Jul 2022, 11:09 AM | edited

Hi.

Thanks for the info. Hopefully this will get solved soon. :-)

What about the issue that all the events show on the wrong day even if they display a week later? Is this just me calculating the dates wrong or is this also related to the bug? I'm asking because the bug description just talks about that one event that doesn't show on the starting date at all.

Thanks.

Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
commented on 06 Jul 2022, 03:20 PM

Hi again.

I just noticed something that might be related to the issue above. As the events showed one day early if I add them to the calendar as recurring dates at Midnight, as a workaround I just added one day to the date to make them show where they should be. The events now show on the Sunday but if I change to Month view, where I only show a recurring allDay event, this appears a bit more down the y-axis as the other events (see screenshots). I have simply added multiple recurring events like this one to the same day and time:

{
  "id": "3abfb540-d3e0-4c0d-b547-6a9ad844dc5e",
  "profile": "b985d49a-ad27-4570-b979-d3633e1f48a3",
  "isAllDay": false,
  "description": "Braunschweig Energieüberwachung aus",
  "title": "17: BWE1027 - Braunschweig Energieüberwachung aus",
  "start": new Date("2022-06-12T22:00:00.000Z"),
  "end": new Date("2022-06-12T22:00:01.000Z"),
  "channel": {
    "id": "580f4dd0-e089-49af-9877-5d4402e8125a",
    "label": "17: BWE1027 - Braunschweig Energieüberwachung aus"
  },
  "recurrenceRule": "FREQ=WEEKLY",
  "recurrenceExceptions": [],
  "color": "#13ee84",
  "onValue": "true",
  "offValue": "false",
  "column": 6
}

Not sure if this is related but I thought I'd let you know.

Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
commented on 08 Jul 2022, 06:06 AM

Ok, I have solved the issue now by setting the Scheduler to the UTC timezone and calculating the times differently.

The issues only appear if I set the Scheduler to a different timezone.

Thanks.

Konstantin Dikov
Telerik team
commented on 08 Jul 2022, 07:49 AM

Hi Bernd,

I will do more tests with the scenario to see if it is related with the previous issue or if it needs to be added as a new one. Since the initial problem was with the calculation of the start date, my guess is that they are related to the same problem that obviously adds some offset to the dates.

Tags
Scheduler
Asked by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Konstantin Dikov
Telerik team
Share this question
or