fix date parsing