Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 来自json提要的完整日历开始结束时间_Php_Jquery_Fullcalendar - Fatal编程技术网

Php 来自json提要的完整日历开始结束时间

Php 来自json提要的完整日历开始结束时间,php,jquery,fullcalendar,Php,Jquery,Fullcalendar,我通过内置的json提要功能从自定义php脚本中提供fullcalendar。但我有点不清楚,我应该如何准备开始时间和结束时间,以便在日历中显示时间。 当前json提要响应以下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 Even

我通过内置的json提要功能从自定义php脚本中提供fullcalendar。但我有点不清楚,我应该如何准备开始时间和结束时间,以便在日历中显示时间。 当前json提要响应以下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不理解此开始字段中的时间部分。 完整的日历文档表明,时间也可以采用格式(例如:“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"}]
它没有做任何改变。 还有什么想法吗?

说你必须使用
全天:false
来显示时间:

{
    title  : 'event3',
    start  : '2010-01-09 12:30:00',
    allDay : false // will make the time show
}

尝试使用unix时间戳,但仍然无效。你一整天都
吗:false
?谢谢你,这很有帮助。把它贴出来作为答案,然后我可以给你加上你应得的分数。