【问题标题】:Events not showed with the correct StartDate and EndDate未使用正确的 StartDate 和 EndDate 显示事件
【发布时间】:2025-12-03 11:45:01
【问题描述】:

这是返回的 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

【问题讨论】:

    标签: extjs calendar extjs4 extensible


    【解决方案1】:

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

    '因为我在你的 JSON 上解释的内容,StartDate 和 EndDate 已经定义,所以不需要 Duration。

    也许这就是你日历的问题

    【讨论】:

      最近更新 更多