fix bug of local_date