使用正确的StartDate和EndDate未显示事件

时间:2013-05-20 09:32:07

标签: extjs calendar extjs4 extensible

这是返回的Json:

{
"success":true,
"evts":[{
    "EventId":"1",
    "CalendarId":"2",
    "Title":"today2",
    "StartDate":"2013-05-01 10:00:00",
    "EndDate":"2013-05-03 02:00:00",
    "Duration":"0",
    "Location":"",
    "Notes":"",
    "Url":"",
    "IsAllDay":"0",
    "Reminder":"",
    "RRule":""
},{
    "EventId":"2",
    "CalendarId":"1",
    "Title":"today",
    "StartDate":"2013-05-15 00:00:00",
    "EndDate":"2013-05-19 00:00:00",
    "Duration":"0",
    "Location":"",
    "Notes":"",
    "Url":"",
    "IsAllDay":"0",
    "Reminder":"",
    "RRule":""
}]
}

但日历显示如下: http://img11.hostingpics.net/pics/922537611.png

它应该如此显示: http://img11.hostingpics.net/pics/358017742.png

1 个答案:

答案 0 :(得分:0)

您是否尝试删除“持续时间”?

'我对你的JSON,StartDate和EndDate的解释已经定义,因此不需要持续时间。

也许这就是弄乱你的日历