Bug JqxsScheduler : if recurrence ends on sunday

the first appointment ends on sunday ==> it appears once 2 weeks later… The 2nd appointment ends on saturday : it's ok.

by mogador

HTML

<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<div id="scheduler"></div>

JavaScript

var changedAppointments;

var appointments = new Array();

var appointment1 = {
  id: "id1",
  subject: "maths",
  resourceId: "gymnase",
  start: "2020-09-28 08:00",
  end: "2020-09-28 10:00",
  recurrenceException:"",
  recurrencePattern: 'FREQ=WEEKLY;BYDAY=MO;INTERVAL=1;UNTIL=20201018T235959Z',
}

var appointment2 = {
  id: "id2",
  subject: "sport",
  resourceId: "stade",
  start: "2020-09-28 10:00",
  end: "2020-09-28 12:00",
  recurrenceException:"",
  recurrencePattern: 'FREQ=WEEKLY;BYDAY=MO;INTERVAL=1;UNTIL=20201017T235959Z',
}

var appointment3 = {
  id: "id3",
  subject: "physics",
  resourceId: "room 1",
  start: "2020-09-29 08:00",
  end: "2020-09-29 10:00",
  recurrenceException:"",
  recurrencePattern: 'FREQ=WEEKLY;BYDAY=TU;INTERVAL=1;UNTIL=20201018T235959Z',
}

var appointment4 = {
  id: "id4",
  subject: "french",
  resourceId: "room 2",
  start: "2020-09-29 10:00",
  end: "2020-09-29 12:00",
  recurrenceException:"",
  recurrencePattern: 'FREQ=WEEKLY;BYDAY=TU;INTERVAL=1;UNTIL=20201017T235959Z',
}

var appointment5 = {
  id: "id5",
  subject: "art",
  resourceId: "room 3",
  start: "2020-09-30 08:00",
  end: "2020-09-30 10:00",
  recurrenceException:"",
  recurrencePattern: 'FREQ=WEEKLY;BYDAY=WE;INTERVAL=1;UNTIL=20201020T235959Z',
}

appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);

// prepare the data
var source = {
  dataType: "array",
  dataFields: [{
      name: 'id',
      type: 'string'
    },
    {
      name: 'resourceId',
      type: 'string'
    },
    {
      name: 'subject',
      type: 'string'
    },
    {
      name: 'recurrencePattern',
      type: 'string'
    },
    {
      name: 'recurrenceException',
      type: 'string'
    },
    {
      name: 'start',
      type: 'date'
    },
    {
      name: 'end',
      type: 'date'
    }
  ],
  id: 'id',
  localData: appointments
};
var adapter = new...