Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery FullCalendar JSON date issue
    primarykey
    data
    text
    <p>I am integrating jQuery plugin <a href="http://arshaw.com/fullcalendar/" rel="nofollow noreferrer">FullCalendar</a>, overall it has been really straightforward. I however have ran into a problem with adding events to the calendar. I am using ASP.NET MVC 1.0 and have found and followed this <a href="http://weblogs.asp.net/gunnarpeipman/archive/2010/02/03/using-fullcalendar-jquery-component-with-asp-net-mvc.aspx" rel="nofollow noreferrer">post</a>.</p> <p>I am returning JSON to the FullCalendar and the events are getting bound, but they all show up as all day events. I am formatting the dates as ISO8601 format as documented at their site.</p> <p><strong>Calendar Javascript</strong></p> <pre><code>$('#calendar').fullCalendar({ events: "/Calendar/GetEvents/" }); </code></pre> <p><strong>JsonResult</strong> </p> <pre><code>public JsonResult GetEvents(double start, double end) { var fromDate = Utility.Dates.ConvertFromUnixTimestamp(start); var toDate = Utility.Dates.ConvertFromUnixTimestamp(end); List&lt;GenericEventList&gt; events = GETGENERICLISTOFEVENTS(); return Json(events.ToArray()); } </code></pre> <p><strong>JSON Result Value</strong></p> <pre><code>[{"id":2,"title":"Test Event","start":"2010-03-14T11:00:00","end":"2010-03-14T16:00:00"}, {"id":3,"title":"Test Event1asasas","start":"2010-03-14T10:00:00","end":"2010-03-14T14:00:00"}, {"id":4,"title":"Test Event12","start":"2010-03-14T16:00:00","end":"2010-03-14T17:00:00"}, {"id":6,"title":"Test Event1aaa","start":"2010-03-14T10:00:00","end":"2010-03-14T14:00:00"}] </code></pre> <p>Any help is truly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload