fixed date parsing bug;forgot to take out console.log