Fixed date parsing bug