compensate for nil date_str