Я делаю календарь на основе дат, поступающих от ввода JSON.Проблема в том, что даже если у моих данных JSON нет повторяющихся дат.он показывает два слота с одинаковой датой за один день.Я также пытался сделать календарь поддерживаемым календарем на 24 часа, но проблема все еще существует
http://jsfiddle.net/xpsg9pa4/28/
Код календаря js, который я использую.
$('#calendar').fullCalendar({
header: {
left: 'prev',
center: 'title',
right: 'next'
},
defaultView:'agendaWeek',
weekNumberCalculation:'ISO',
defaultDate: new Date(),
selectable: false,
editable: false,
validRange: {
start: moment(new Date(Date.now() + 24 * 60 * 60 * 1000)).format('Y-MM-DD')
},
weekNumbersWithinDays: true,
navLinks: false, // can click day/week names to navigate views
eventLimit: true, // allow "more" link when too many events
events:[{"title":"17:30","start":"2018-09-27 17:30"},{"title":"18:30","start":"2018-09-27 18:30"},{"title":"19:30","start":"2018-09-27 19:30"},{"title":"20:30","start":"2018-09-27 20:30"},{"title":"21:30","start":"2018-09-27 21:30"},{"title":"22:30","start":"2018-09-27 22:30"},{"title":"23:30","start":"2018-09-27 23:30"},{"title":"00:30","start":"2018-09-28 00:30"},{"title":"01:30","start":"2018-09-28 01:30"},{"title":"02:30","start":"2018-09-28 02:30"},{"title":"15:30","start":"2018-09-28 15:30"},{"title":"17:30","start":"2018-09-28 17:30"},{"title":"18:30","start":"2018-09-28 18:30"},{"title":"19:30","start":"2018-09-28 19:30"},{"title":"20:30","start":"2018-09-28 20:30"},{"title":"21:30","start":"2018-09-28 21:30"},{"title":"22:30","start":"2018-09-28 22:30"},{"title":"23:30","start":"2018-09-28 23:30"},{"title":"00:30","start":"2018-09-29 00:30"},{"title":"01:30","start":"2018-09-29 01:30"},{"title":"02:30","start":"2018-09-29 02:30"},{"title":"15:30","start":"2018-09-29 15:30"},{"title":"17:30","start":"2018-09-29 17:30"},{"title":"18:30","start":"2018-09-29 18:30"},{"title":"19:30","start":"2018-09-29 19:30"},{"title":"20:30","start":"2018-09-29 20:30"},{"title":"21:30","start":"2018-09-29 21:30"},{"title":"22:30","start":"2018-09-29 22:30"},{"title":"23:30","start":"2018-09-29 23:30"},{"title":"00:30","start":"2018-09-30 00:30"},{"title":"01:30","start":"2018-09-30 01:30"},{"title":"02:30","start":"2018-09-30 02:30"},{"title":"17:30","start":"2018-09-30 17:30"},{"title":"18:30","start":"2018-09-30 18:30"},{"title":"19:30","start":"2018-09-30 19:30"},{"title":"20:30","start":"2018-09-30 20:30"},{"title":"21:30","start":"2018-09-30 21:30"},{"title":"22:30","start":"2018-09-30 22:30"},{"title":"23:30","start":"2018-09-30 23:30"},{"title":"00:30","start":"2018-10-01 00:30"},{"title":"01:30","start":"2018-10-01 01:30"},{"title":"02:30","start":"2018-10-01 02:30"}]
});
Слоты, такие как 2018-09-28 23:30
, повторяются два раза