Skip to content

Commit d20cf38

Browse files
committed
Fix #840: Fix GetOccurrences to properly deal with periodStart's TZ
1 parent 45282d0 commit d20cf38

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Ical.Net/Evaluation/RecurrenceUtil.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ public static IEnumerable<Occurrence> GetOccurrences(IRecurrable recurrable, Cal
2222
return [];
2323
}
2424

25-
// Ensure the start time is associated with the object being queried
2625
var start = recurrable.Start;
2726

28-
// Change the time zone of periodStart as needed
29-
// so they can be used during the evaluation process.
30-
31-
if (periodStart != null)
32-
periodStart = new CalDateTime(periodStart.Date, periodStart.Time, start.TzId);
33-
3427
var periods = evaluator.Evaluate(start, periodStart, options);
3528
if (periodStart != null)
3629
{

0 commit comments

Comments
 (0)