ongoingEvents.useLocalTimezone Boolean (default: true)

If set to false the ongoing events will be highlighted in the scheduler timezone. That means only events that happen at the moment (according to their start and end data) will be highlighted. In order the highlight on the ongoing events to be visually in sync with the currentTimeMarker in the widget, the useLocalTimezone configuration options of both must be set to the same value. This way the highlighted ongoing events will be placed over the currentTimeMarker.

Example

<div id="scheduler"></div>
<script>
  var currentTime = new Date();
  var year = currentTime.getFullYear();
  var month = currentTime.getMonth();
  var day = currentTime.getDate();
  var hour = currentTime.getHours();

  $("#scheduler").kendoScheduler({
    timezone: "Etc/UTC",
    ongoingEvents: {
      enabled: true,
      useLocalTimezone: false
    },
    currentTimeMarker: {
      useLocalTimezone: false
    },
    dataSource: [{
      id: 1,
      title: "test",
      start: new Date(year, month, day, hour - 1),
      end: new Date(year, month, day, hour + 1)
    }]
  });
</script>
In this article