Last Updated: 17 Apr 2018 10:33 by ADMIN
Peter Milchev
Created on: 17 May 2017 16:52
Category: Scheduler
Type: Bug Report
In MobileRender mode, navigation using the calendar is to the wrong day
When the timezone of the client is before UTC (e.g. UTC -1 or UTC -3) if you use the calendar for navigation, you will be navigated to the day before the selected one.
1 comment
Peter Milchev
Posted on: 25 Jan 2018 09:33
The problem is in Telerik.Web.UI.RadScheduler.prototype._nativeCalendarBlur  where the new Date() method creates a date and converts it to the local timezone, hence the difference in the date ( 2017.1.2 00:00 in UTC is 2017.1.1 23:00 in UTC-1)

Тhe workaround is to use the following override: 

Telerik.Web.UI.RadScheduler.prototype._nativeCalendarBlur = function (l) {
    var k = new Date(;
    k = new Date(k.getUTCFullYear(), k.getUTCMonth(), k.getUTCDate());
    var j = new Telerik.Web.UI.Scheduler.NavigationCommandEventArgs(Telerik.Web.UI.SchedulerNavigationCommand.NavigateToSelectedDate, k);
    this.raiseEvent("navigationCommand", j);
    if (j.get_cancel()) { = this._datePickerOriginalValue;
    if (this._renderingManager) {
        j = new Telerik.Web.UI.Scheduler.NavigationCompleteEventArgs(Telerik.Web.UI.SchedulerNavigationCommand.NavigateToSelectedDate);
        this.raiseEvent("navigationComplete", j);
    } else {
        var m = {
            Command: "NavigateToSelectedDate",
            StartDate: k.format("yyyyMMddHHmm")