Convert _WITHIN config to timedelta (#1241)