fix bug of date.parse