codeforamerica / ohhs_Falcon

2 stars 11 forks source link

Fix RangeError: Invalid Date #18

Closed migurski closed 11 years ago

migurski commented 11 years ago

main.js line 172:

  detailHTML += "<div class='inspections'> This building has been <span> inspected "+building.inspections.length+" times</span>"+(building.inspections.length > 0 ? ", most recently "+prettyDate(recentInspectionDate.toISOString())+".</div>" : ".");

main.js:172RangeError: Invalid Date

mick commented 11 years ago

when does this happen? I cant reproduce it

migurski commented 11 years ago

It reproduces on the building behind ours on Natoma, in Safari 5.1.7. Works fine in Chrome and Mobile Safari. I’ll reassign this bug to myself.

migurski commented 11 years ago

Fixed in 47e516b.