Note that there are some explanatory texts on larger screens.

plurals
  1. POFullCalendar Events not showing up only on Safari
    primarykey
    data
    text
    <p>I've been working with FullCalendar plugin for a bit now and I've managed to get it working in FF and Chrome but I can't seem to understand why the events don't show up on Safari. </p> <p>I am using a Rails backend to fetch the events as an array. This is the JSON object for the events that FireBug displays.</p> <pre><code>_end: Invalid Date _id: "1953" _start: Fri Feb 10 2012 00:00:00 GMT+0530 (IST) allDay: false backgroundColor: "#F60 !important" className: Array[0] color: "#FFFFFF !important" description: "" end: Invalid Date start: Fri Feb 10 2012 00:00:00 GMT+0530 (IST) textColor: "#FFFFFF !important" __proto__: Object </code></pre> <p>I have no errors on the safari console. The invalid end date shows up as <code>null</code> on FF and Chrome.</p> <p>Here is how I populate the events</p> <pre><code>event[:id] = each_event.id event[:title] = each_event.event_title event[:allDay] = each_event.all_day? event[:start] = each_event.start_time.strftime('%Y-%m-%d %H:%M:00') event[:end] = each_event.end_date.to_time.strftime('%Y-%m-%d %H:%M:00') if each_event.end_date.present? event[:color] = '#FFFFFF !important' event[:backgroundColor] = (each_event.user == current_user) ? '#F60 !important' : '#090 !important' event[:backgroundColor] = '#090 !important' unless each_event.private? event[:textColor] = '#FFFFFF !important' </code></pre> <p>I tried converting the datetime to iso8601 format too and it did not work. I'm completely clueless on what the problem is. I would really appreciate some help.</p>
    singulars
    1. This table or related slice is empty.
    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