Fix multi-day event recurrences for monthly calendar.

This commit is contained in:
Burak Kaan Köse
2025-01-07 22:12:54 +01:00
parent 05748e23b1
commit b6edbad744
4 changed files with 62 additions and 43 deletions

View File

@@ -158,10 +158,9 @@ namespace Wino.Services
// There is no exception for the period.
// Change the instance StartDate and Duration.
ev.StartDate = occurrence.Period.StartTime.Value;
ev.DurationInSeconds = (occurrence.Period.EndTime.Value - occurrence.Period.StartTime.Value).TotalSeconds;
var recurrence = ev.CreateRecurrence(occurrence.Period.StartTime.Value, occurrence.Period.Duration.TotalSeconds);
result.Add(ev);
result.Add(recurrence);
}
else
{