Bug with recurring events and 31 day of a Month

Hi,

I’m currently evaluating recurring events feature set of dhtmlxScheduler and think I’ve found a bug.

Steps to Reproduce:

  1. Open the sample page docs.dhtmlx.com/scheduler/sampl … vents.html
  2. Create a new recurring event: “Monthly”, “Repeat 31 day every 1 month”, “No end date”:

  3. Open the “Month” view, move to the Month May and observe that the event is shown on June 1st.
  4. Now open the month June (still in Month View) and observe that the event is shown on May 31st.

I think this doesn’t make sense. There seems to be a serious bug. Also if I query the events using the my browsers JS console:

scheduler.getEvents(new Date("2018-5-1"), new Date("2018-6-10"))

This returns that the event “new event” is happening on May 31st. But the query

scheduler.getEvents(new Date("2018-4-1"), new Date("2018-6-10"))

returns June 1st!

Raffael