fix bug of datetime format