Fixed date parsing in the parse protocol function.