fix locale-related date parsing error