Scheduler: native recurrence handling, onActionCompleted persistence, EXDATE RFC5545, UI icon cleanup

This commit is contained in:
RobbStarkAustria
2025-10-14 05:54:36 +00:00
parent e53cc619ec
commit 17c3452310
2 changed files with 100 additions and 109 deletions

View File

@@ -68,14 +68,15 @@ def get_events():
for ex in all_exceptions:
if ex.is_skipped:
exd = ex.exception_date
# Create the EXDATE timestamp using the master event's original start time
# This should match the time when the original occurrence would have happened
# Create the EXDATE timestamp in Syncfusion's expected format
# Use the exact time of the occurrence that would have happened
occ_dt = datetime(
exd.year, exd.month, exd.day,
base_start.hour, base_start.minute, base_start.second,
tzinfo=UTC
)
token = occ_dt.strftime('%Y-%m-%dT%H:%M:%SZ')
# Format as compact ISO without separators (yyyyMMddThhmmssZ) - RFC 5545 format
token = occ_dt.strftime('%Y%m%dT%H%M%SZ')
tokens.append(token)
if tokens:
recurrence_exception = ','.join(tokens)