add rescue to localize_date