fix bug of date