Skip to content

Refactor RecurrencePattern.Until #663

@axunonb

Description

@axunonb

Remove necessity for setting the initial value to DateTime.MinValue (make it nullable)
Should RecurrencePattern.Until become a IDateTime instead of DateTilme?
Fix the method to determine the zoned date/time value

// Convert the UNTIL value to one that matches the same time information as the reference date
if (r.Until != DateTime.MinValue)
{
r.Until = MatchTimeZone(referenceDate, new CalDateTime(r.Until, referenceDate.TzId)).Value;
}

MatchTimeZone contains noop code back to v4.1.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions