| Issue 1623: | Wrong Unix time stamp while updating events on drag&drop | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Dec 10, 2012
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
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |