Fix date parsing