Fix date parsing bug.