FullCalendar 不显示事件时间 - 由 CFC 提供
我已经多次看到这个问题(并回答),但到目前为止,没有一个解决方案对我有用。
我有一个 cfc,它将 json 数据返回到 FullCalendar 的实例。
返回的数据如下所示:
[{"id":2,"title":"测试事件一","start":"February, 17 2011 09:30:00","end":"February, 17 2010 10:30:00","allday":false}]
该事件在所有日历视图中的正确日期显示 - 但显示在全天部分。
我像这样调用日历:
$('#calendar').fullCalendar({
editable: true,
events:'getEvents.cfc?method=getEvents&returnformat=json',
header: {
right: '',
center: 'prev,next today',
left: 'agendaDay,agendaWeek,month,'
}
我真的很感激任何帮助 - 谢谢
I've seen this asked (and answered) a number of times, but thus far none of the solutions is working for me.
I have a cfc that returns json data to an instance of FullCalendar.
The returned data looks like this:
[{"id":2,"title":"Test Event One","start":"February, 17 2011 09:30:00","end":"February, 17 2010 10:30:00","allday":false}]
The event is showing on the right day in all the calendar views - but is showing up in the all day section.
I'm invoking the calendar like this:
$('#calendar').fullCalendar({
editable: true,
events:'getEvents.cfc?method=getEvents&returnformat=json',
header: {
right: '',
center: 'prev,next today',
left: 'agendaDay,agendaWeek,month,'
}
I'd really appreciate any help with this - Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这就是我在 jason-event.php 上所做的,它有效
This is what I did on the
jason-event.php
and it worked您似乎没有以 fullCalendar 对象期望的格式返回日期。查看 Event Object 文档,您需要以以下格式返回日期:
It doesn't appear that you're returning the date in the format the fullCalendar object expects. Looking at the Event Object documentation, you need to return the dates in the following formats: