Issue 1623: Wrong Unix time stamp while updating events on drag&drop
Status:  Done
Owner: ----
Closed:  Aug 2013
Reported by nkdw...@gmail.com, Nov 26, 2012
The events fetched from the database displaying correctly in the full calendar.

When I try to drag and drop the events to another date, it gives wrong unix timestamp.

For example)

The events is currently in November 16 2012, when I drag and drop it to 20 November 2012, it gives the unix time stamp as 1353340800000 and the date after converting using strtotime PHP funtion, the result is 1983-07-03.

Please advice me what is the issues and how to solve it.
Dec 10, 2012
#1 nkdw...@gmail.com
Is there any solution to fix this issue?
Dec 10, 2012
#2 nkdw...@gmail.com
Issue Fixed :

Check the updated code below.

$('#calendar').fullCalendar({

        editable: true,

        eventDrop: function(calEvent,dayDelta,minuteDelta,allDay,revetFunc) {
            var stDate = $.fullCalendar.formatDate(calEvent.start, 'dd-MM-yyyyy');
            $.post('event_update.php',{'allday':allDay, 'event':calEvent.id, 'start':stDate}, function(response){
                if(response.length > 0){
                   alert(response);
                   revertFunc();
                }
        });
        },

        loading: function(bool) {
            if (bool) $('#loading').show();
            else $('#loading').hide();
        }

    });
Aug 18, 2013
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done