Fixed inconsistent date parsing