首页 文章

fullcalendar在上午10点之前没有显示时间

提问于
浏览
2

嗨我正在使用fullcalendar在我的前端显示时间段 . 我正在将json数据发送到fullcalendar配置,它显示所有时间段,虽然存在json数据,但是在10之前的时间 .

enter image description here

我的日历配置是

$('#calendar').fullCalendar({
        defaultView: 'agendaDay',
        defaultDate: $scope.today,
        schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'agendaDay,agendaWeek,month'
        },
        allDaySlot: false,
        eventClick: function (eventsFeed) {
            $scope.openApptDetails(eventsFeed);
        },
        minTime: "07:00:00",
        maxTime: "21:00:00",
        contentHeight: "auto",
        resources: resourcesFeed,
        events: eventsFeed
    });

那么任何人都可以帮助我为什么日历不在上午10点之前显示时间段 .

json数据:

event: {color:"green",end:"2018-04-18T10:00:00",resourceId:1,start:"2018-04-18T9:00:00",studentName:"",title:"Available",tutorName:"",type:"",}

resource: {id:1,title:"Timmy Tutor"}

我使用的是FullCalendar v3.6.1

1 回答

  • 1

    试试 2018-04-18T09:00:00 而不是 2018-04-18T9:00:00
    小时缺少 0 .

相关问题