telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.9k forks source link

Recurring events are not rendered on correct day in different timezones #6856

Open nelito987 opened 2 years ago

nelito987 commented 2 years ago

Bug report

Recurring events are not rendered on the correct date when an event has to be displayed on different dates in different time zones.

Reproduction of the problem

  1. In our demos or the Dojo linked here create an event with starting time of 09 AM. Set the event to repeat every Monday. In the example below the timezone of the machine and the event is UTC +2 (Sofia)

image

Below are two events recurring and nonrecurring created with the same starting date and time in UTC +2 image

  1. To simulate opening in different time zones change the Timezone on the machine with a difference of more than -9 hours, so the event to be expected to display on the previous day. For example, select UTS -10 Hawaii.

Current behavior

After changing the time zone on the machine from UTC +2 to UTC -10 the event is rendered at 8 PM, but it is still displayed on Monday. Thus, recurring and non-recurring events created with the same start date and time are displayed on different days when the time zone is changed: image

Expected/desired behavior

The date of the recurring event should be changed according to the time zone. It should be possible to repeat events on a different days of the week when the Scheduler is opened at different timezone

Note: The start and end times of the events in the Scheduler are saved as UTC dates. The Scheduler will not be aware of the current timezone by the time of creating the event, except it is explicitly set. Thus, it will be possible for the recurring events to be rendered on a different day only if the timezone of the event is set.

Environment

nelito987 commented 2 years ago

Related to: https://github.com/telerik/kendo-ui-core/issues/2270