Issue with recurring events in different time zones.

2 posts, 1 answers
  1. Mike
    Mike avatar
    11 posts
    Member since:
    May 2012

    Posted 25 Jul 2013 Link to this post

    I have a scheduler control on a page. 

    Html.Kendo().Scheduler<TaskViewModel>()
        .Name("MyScheduler")
        .Date(DateTime.Now)
        .Height(600)
        .Views(views =>
        {
            views.DayView();
            views.WeekView(weekView => weekView.Selected(true));
        })
        .DataSource(dataSource =>
            dataSource.Model(m =>
            {
                m.Id(o => o.Id);
            })
            .ServerOperation(true)
            .Read(read => read.Action("ReadSchedules", "Scheduler"))
        )
        .Editable(false)
    Nothing fancy,  For the purpose of testing out the control, i'm using the TaskViewModel from the example project. At my company we have people in India who will create recurring schedules on this calendar. When I save the schedule's date/time, i'm storing it as a UTC value (just like your example project). The problem occurs when a user here in the  U.S. (Central Standard Time) views a recurring (weekly with specified days) schedule. India would create a 9:30 AM IST, recurring every Tuesday & Thursday and the duration is for 2 hours. When an Indian user reads the data back, the scheduler displays it just fine. When a user in the U.S. (CST) views it, we should expect to see a recurring meeting at 11:00 PM CST on Monday and Wednesday. Instead, the meeting is showing up at 11:00 PM CST on Tuesday and Thursday. Not only is it showing up on the wrong day, but the event shows up on the scheduler as if the duration of the meeting as zero.

    I also noticed something else, when I save the schedule, I am able to save the StartTimezone and EndTimezone to the database, however, these fields are not members of the ISchedulerEvent interface. The scheduler control seems to lose these values when it is repopulated with data. How is the client control supposed to know how to properly convert from one timezone to another without that information? 


  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 26 Jul 2013 Link to this post

    Hello Mike,

     
    The described problem is a known issue, which is addressed in the latest internal build of Kendo UI. Here is a screencast, which shows that with the improvements the widget behaves as expected.

    Regards,
    Georgi Krustev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top