My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 195: Events always showing as All
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2009


Sign in to add a comment
 
Reported by borgenvik.david@gmail.com, Nov 17, 2009
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
Found a solution.
Using 2009-11-17-10:00:00 as the JSON date and then splitting the date on the caller
side and creating a new javascript date worked fine! The solution is a bit more code
that a bargained for but it works and performance wise it doesn't seem to slow down
the Events generating too much.

Credits for this solution goes to: Bora. Solution post can be found here:
http://stackoverflow.com/questions/1673375/full-calendar-adding-time-to-the-calendars-json
Nov 27, 2009
Project Member #2 adamrs...@gmail.com
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
#4 borgenvik.david@gmail.com
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
#5 roshtu...@gmail.com
Wow! thanks! I spent soooo many hours for the same quotation marks!!
Apr 20, 2010
#6 borgenvik.david@gmail.com
I'm glad it help! =o)
Mar 16, 2012
#7 terril.h...@gmail.com
[{"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
#8 david.me...@gmail.com
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

Powered by Google Project Hosting