hoodiehq / hood.ie

:dog: Hoodie Website
http://hood.ie
Apache License 2.0
78 stars 61 forks source link

JS error on /events prevents loading events list #204

Closed lenareinhard closed 8 years ago

lenareinhard commented 8 years ago

Uncaught TypeError: eventItem.date.getTime is not a function in events.js:138

Events list is not loading anymore now. image

zoepage commented 8 years ago

cc @espy :)

lewiscowper commented 8 years ago

I've done some digging, and it seems like something somewhere has changed the format of the dates that we're getting. What (I think) we need is eventItem.date to be new Date(yyyy,mm,dd), but all we're getting through is Date(yyyy,mm,dd) and because that's a string, getTime is not a function on it. I would love to try and make sense of the code to fix it, but I think someone who's done more work with Sheetrock/the GDoc/this is probably better positioned to do it.

espy commented 8 years ago

That seems to have done it :)