pub fn resolve_date_range( raw: &RawRangeOptions, now: DateTime<Utc>, ) -> Result<DateRange, AppError>