How is it possible to make the month displaying only events of the month ?
Now if the first day of the month is not the first day of the week (and the same for the end of the month) it display the last day (with its events) of the previous month.
That’s make a problem for me because i have to know the total duration of all event of the month.
But now i use this code to have it :
var evs = scheduler.getEvents(scheduler.getState().min_date,scheduler.getState().max_date);
var duration=0;
var format=scheduler.date.date_to_str("%m/%d/%Y %H:%i:%s");
for (var i=0; i<evs.length; i++)
{
var start=new Date(format(evs[i].start_date));
var end=new Date(format(evs[i].end_date));
var evs_duree=(end.getTime()-start.getTime())/1000/60/60;
duration=duration+evs_duree;
}
But it count all the events that are displayed.
So the total duration of the month is false.