title: jQuery fullcalendar doesn't update database after resizing
body: <p>Ola,</p>
  
  <p>I got some events stored in a database and i'm showing these in my jquery fullcalendar. Now i also got it working so that i can change the day of an event by draging and dropping. Changing the time by resizing a event i can't get working tho.</p>
  
  <p>I guess it has something to do with me not giving a time here:</p>
  
  <pre><code>start = moment(start, 'DD.MM.YYYY').format('YYYY-MM-DD')
  end = moment(end, 'DD.MM.YYYY').format('YYYY-MM-DD')
  </code></pre>
  
  <p>But all the formats i tried (for instance: YYYY-MM-DDThh:mm:ss)  give this error:</p>
  
  <pre><code>Uncaught ReferenceError: start is not defined
  </code></pre>
  
  <p>Now with my current code i <strong>can</strong> resize elements, it only doesn't save them in my database. This is the code:</p>
  
  <pre><code>$(document).ready(function() {
  
      var calendar = $('#calendar').fullCalendar({
          editable: true,
          events: "http://localhost/plann/events.php",
          defaultView: 'agendaWeek',
          selectable: true,
          editable: true,
          selectHelper: true,
          select: function(start, end, allDay) {
              var title = prompt('Event Title:');
  
              if (title) {
                  start = moment(start, 'DD.MM.YYYY').format('YYYY-MM-DD')
                  end = moment(end, 'DD.MM.YYYY').format('YYYY-MM-DD')
  
                  $.ajax({
                      url: 'http://localhost/plann/add_events.php',
                      data: 'title='+ title+'&amp;start='+ start +'&amp;end='+ end ,
                      type: "POST",
                      success: function(json) {
                          alert('OK');
                      }
                  });
  
                  calendar.fullCalendar('renderEvent',
                  {
                      title: title,
                      start: start,
                      end: end,
                      allDay: allDay
                  },
                      true // make the event "stick"
                  );
              }
              calendar.fullCalendar('unselect');
          },
  
          eventDrop: function(event, delta) {
              start = moment(event.start, 'DD.MM.YYYY').format('YYYY-MM-DD')
              end = moment(event.end, 'DD.MM.YYYY').format('YYYY-MM-DD')
  
              $.ajax({
                  url: 'http://localhost/plann/update_events.php',
                  data: 'title='+ event.title+'&amp;start='+ start +'&amp;end='+ end +'&amp;id='+ event.id ,
                  type: "POST",
                  success: function(json) {
                      alert("OK");
                  }
              });
          },
  
          eventResize: function(event) {
              start = moment(event.start, 'DD.MM.YYYY').format('YYYY-MM-DD')
              end = moment(event.end, 'DD.MM.YYYY').format('YYYY-MM-DD')
  
              $.ajax({
                  url: 'http://localhost/plann/update_events.php',
                  data: 'title='+ event.title+'&amp;start='+ start +'&amp;end='+ end +'&amp;id='+ event.id ,
                  type: "POST",
                  success: function(json) {
                      alert("OK");
                  }
              });  
          }
      });
  
  });
  </code></pre>