Integrating jQuery fullcalendar into PHP website

前端 未结 11 882
夕颜
夕颜 2021-02-01 09:28

I would like to integrate the jQuery fullcalendar into my PHP website, but I don\'t know how to handle the event and how to use the JSON data from MySQL.

Any advice wou

11条回答
  •  天涯浪人
    2021-02-01 10:13

    I think your having the same problem as I'm having. I've search the web trying to find out how to setup the DateTime so that the fullCalendar javascript will interpret it correctly. (This page had some good clues to that: http://blog.stevenlevithan.com/archives/date-time-format).

    I posted this on the fullCalendar issues page hoping that the creator or anyone else would shed some light on the subject.

    ====================ISSUE DESCRIPTION====================

    What steps will reproduce the problem?

    1. Fetch events using JSON
    2. use this JSON string:

     

    [{"id":2, "title":"title of 2","start":"2009-11-17T10:00:00" ,"end":"2009-11-17T11:01:00","url":"?eventID=2"}]
    

    What is the expected output? What do you see instead?

    • I expect that the event will show up in the calendar with start time 10:00 and end time 11:01.
    • It show up as an all day event.

    What version of the product are you using? On what operating system?

    • FullCalendar v1.4.1
    • Windows XP

    Please provide any additional information below.

    I am using an aspx page for fetching the calendar events. My guess is that there is something wrong with the format of the JavaScript DateTime object that I'm returning in the JSON and that this is causing the fullcalendar to interpret the events as fullDayEvents. The format that I'm sending in the JSON is: 2009-11-17T11:01:00.

提交回复
热议问题