我通过构建json feed功能从我的自定义php脚本中提供fullcalendar。但它对我来说有点不清楚,我应该如何准备开始和结束时间,以便在日历中显示时间。 目前json feed响应json数据:
[{"id":46,"title":"Some Event","start":"2013-12-16 06:00:00"},
{"id":47,"title":"Some Event 2","start":"2013-12-23 06:00:00"},
{"id":48,"title":"Some Event3","start":"2013-12-30 06:00:00"}]
但是fullcalendar不理解这个起始字段的时间部分。 fullcalendar文档说taht time也可以格式化(例如:“2009-11-05T13:15:30Z”)
所以我准备了这样的json数据:
[{"id":46,"title":"Some event","start":"2013-12-16T06:00:00Z"},
{"id":47,"title":"Some event 2","start":"2013-12-23T06:00:00Z"},
{"id":48,"title":"Some event 3","start":"2013-12-30T06:00:00Z"}]
它没有做任何改变。 还有更多想法吗?
答案 0 :(得分:3)
Documentation说您必须使用allDay : false
来显示时间:
{
title : 'event3',
start : '2010-01-09 12:30:00',
allDay : false // will make the time show
}