Fix date parsing issues