From 57e93553bfa53e4723461f5fa63fdb013c06c776 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 4 Nov 2025 17:05:02 -0500 Subject: [PATCH] Exit early if a reminder has expired. --- src/calendar.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/calendar.c b/src/calendar.c index bd49a2db..9644688a 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -2078,6 +2078,10 @@ static int DoCalRem(ParsePtr p, int col) FreeTrig(&trig); return OK; } + if (dse < 0) { + /* Expired */ + return OK; + } } else { /* Calculate the trigger date */ EnterTimezone(trig.tz); @@ -2090,6 +2094,10 @@ static int DoCalRem(ParsePtr p, int col) FreeTrig(&trig); return r; } + if (dse < 0) { + /* Expired */ + return OK; + } } /* Adjust trigger date/time to time zone */