将事件开始日期从FullCalendar更新到我的数据库中的时间为00:00:00

I am using FullCalendar and attempting to update an event start time when a user drags and drops an event in my calendar. This is the code I am using attached to the eventDrop callback (https://fullcalendar.io/docs/eventDrop):

        alert(info.event.id + ' was dropped on ' + info.event.start);
        $.ajax({
          url: '/Post/dropPost',
          type: 'POST',
          data: { 'postSchedule': info.event.start, 'postId' : info.event.id },
        });
       },

只要警报显示正确的事件ID和正确的开始日期(采用以下格式:Tue May 05 2020 04:36:00),它就可以发挥作用。还调用'/ Post / dropPost'方法,并且可以正确传递postId变量。

但是,当它更新我的数据库时,postSchedule始终更新为“ 00:00:00 00:00:00”。

这是我的dropPost方法:

    public function dropPost() 
    {
        $data=[];
        $postSchedule = $_POST['postSchedule'];
        $postId = $_POST['postId'];
        $droppedPost = new PostModel;
        $data['id'] = $postId;
        $data['postSchedule'] = $postSchedule;
        $droppedPost->save($data);
    }

From reading the FullCalendar documents my understand is that that dates should always be ISO8601 standard: https://fullcalendar.io/docs/date-parsing. So why does it not translate into my database.

我的数据库中的postSchedule列是DateTime类型。