I'm trying to have my Extensible Calendar dates match my mySql date format but I don't know if I'm changing it in the correct spot.


Here is my EventMappings


HTML Code:
Extensible.calendar.data.EventMappings = {
    EventId:     {name: 'EventId', mapping:'id', type:'int'},
    CalendarId:  {name: 'CalendarId', mapping: 'roomId', type: 'int'},
    Title:       {name: 'Title', mapping: 'description'},
    StartDate:   {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'Y-m-d H:i:s'},
    EndDate:     {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'Y-m-d H:i:s'},
    RRule:       {name: 'RRule', mapping: 'rrule'},
    Notes:       {name: 'Notes', mapping: 'notes'},
    Reminder:    {name: 'Reminder', mapping: ''},
    Location:    {name: 'Location', mapping: ''},
    Url:         {name: 'Url', mapping: ''},
    IsAllDay:     {name: 'IsAllDay', mapping: ''},
    
    // We can also add some new fields that do not exist in the standard EventRecord:
    User:   {name: 'User', mapping: 'user'},
    Approved:   {name: 'Approved', mapping:'approved', type:'boolean'}
};
When I try to post an update to my backend though the date seems to be sent in this format
HTML Code:
Wed_Dec_14_2011_01:00:00_GMT-0500_(EST)

I've been banging my head against this for a while and just can't figure it out. I haven't seen anyone else with the same issue in the forum so I assuming I'm doing something wrong somewhere.


Any help would be terrific. Thank you.