Fix end time of recurring events

The UNTIL date in RRULE specs were being ignored as the code had event_until = max(event_until, end_utc); I think you mean "min" here so that event_until is the smallest of those two dates.