Hmmm.... I just replicated your code, and it looks like the eb.utils.eventListRow
is spitting out the wrong time. The API is returning the correct start_date
value.
My suggestion is to parse the JSON results yourself. Instead of using eb.utils.eventListRow
you can get the eb.event_search
response as a JSON object:
function getEventbriteEvents() {
Eventbrite({'app_key': "54XIQ35B73N6UXADDF", 'user_key':"12922547909277245491"}, function(eb){
eb.event_search( {'date':"Future",'organizer': "Lamplighters International", "sort_by":"date"}, function( response ){
console.log(response);
});
});
}
The response
variable will be a JSON object with structure shown here (full result structure in the docs: http://developer.eventbrite.com/doc/events/event_search/):
{
"events": [{
"summary": {
"total_items": 6,
"first_event": 8625730793,
"last_event": 8648687457,
"filters": {
"organizer": "Lamplighters International"
},
"num_showing": 6
}
},
{
"event": {
"timezone": "America/Chicago",
"id": 8625730793,
"title": "W100 - Basic Training Workshop",
"start_date": "2014-04-09 11:45:00",
"end_date": "2014-04-09 13:00:00",
"timezone_offset": "GMT-0500",
[...tons more event info...]
}
},
{[...more events...]}
}
Hope that helps you out. Good luck!