From: David Levine Date: Thu, 19 Nov 2015 20:27:49 +0000 (-0500) Subject: Allow a RRULE in an iCalendar request to not have an INTERVAL on its X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/82538114a7761232df236f489e2d59f6e91cde8c?ds=sidebyside;hp=68bb948f6c1484de72e07f315b9dd1694037acfd Allow a RRULE in an iCalendar request to not have an INTERVAL on its yearly FREQ, because INTERVAL defaults to 1. --- diff --git a/sbr/datetime.c b/sbr/datetime.c index 34287b23..4e155855 100644 --- a/sbr/datetime.c +++ b/sbr/datetime.c @@ -262,7 +262,8 @@ rrule_clock (const char *rrule, const char *starttime, const char *zone, unsigned int year) { time_t clock = 0; - if (nmh_strcasestr (rrule, "FREQ=YEARLY;INTERVAL=1")) { + if (nmh_strcasestr (rrule, "FREQ=YEARLY;INTERVAL=1") || + (nmh_strcasestr (rrule, "FREQ=YEARLY") && nmh_strcasestr(rrule, "INTERVAL") == NULL)) { struct tws *tws; const char *cp; int wday = -1, month = -1;