| Issue 195: | Events always showing as All | |
| 2 people starred this issue and may be notified of changes. | Back to list |
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.
Nov 18, 2009
#1
borgenvik.david@gmail.com
Nov 27, 2009
hi borgenvik,
glad you got it to work, but i can offer a much easier solution. You need to:
1. specify your dates in the "2009-11-17T10:00:00" form (you NEED the "T" or else
they won't display)
2. use the allDay:false attribute for each event
so, your json should look like this:
[{"id":2,"name":"1","title":"takvim","start":"2009-11-04T12:30:00","end":"2009-11-04T13:30:00"},"allDay":false]
Status:
Done
Nov 28, 2009
Hi Adam,
Thank you for you replay! I had been trying loads of diffrent dateformats including
the one you suggested (yyyy-MM-ddThh:mm:ss) but with no luck. However after your
input I went back and tried again, after a few tries when no luck I finally realized
that I had been setting ("allDay" : "false") instead of ("allDay" : false). It's
amazing how many hours are spent world wide each year being frustrated over misplaced
single or double quotation marks!!
Thanks again Adam I really appreciate you taking time to answer, and setting me on
the right track!
Apr 19, 2010
Wow! thanks! I spent soooo many hours for the same quotation marks!!
Apr 20, 2010
I'm glad it help! =o)
Mar 16, 2012
[{"id":2,"name":"1","title":"takvim","start":"2009-11-04T12:30:00","end":"2009-11-04T13:30:00","allDay":false}]
This will work. Subtle difference
Apr 21, 2014
When the property Allday default = false or reading of data base Allday and treat the "eventRender" event, nothing is displayed. The "compileSlotSegs" fullcalendar.js function has an error in the "colSegs" object. The "colSegs' object has no data. This happens in version 2.0.0-beta2. In version 1.6.4 works correctly. Does anyone know why or have a solution? thanks |
|
| ► Sign in to add a comment |