Fix incorrect date parsing