Skip to content

Commit 795de36

Browse files
committed
Test: Reproduce issue with sub-day BY* values not being ignored if DTSTART is date-only.
# Conflicts: # src/test/icalrecur_test.c # src/test/icalrecur_test.out
1 parent e8b159d commit 795de36

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/test/icalrecur_test.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,11 @@ const struct recur rfc5545[] = {
410410
"FREQ=YEARLY;BYWEEKNO=6;BYDAY=TU;WKST=TH;UNTIL=20210612T000000Z",
411411
NULL},
412412

413+
/* time-related BY* should be ignored if DTSTART is date-only */
414+
{"20241018",
415+
"FREQ=DAILY;BYMINUTE=1,2,3,4;INTERVAL=2;COUNT=3",
416+
NULL},
417+
413418
{NULL, NULL, NULL}
414419
};
415420

src/test/icalrecur_test.out

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,7 @@ INSTANCES:20210302T102000,20210302T112000,20210302T122000,20210302T132000,202103
289289
RRULE:FREQ=YEARLY;BYWEEKNO=6;BYDAY=TU;WKST=TH;UNTIL=20210612T000000Z
290290
DTSTART:20180206T080001
291291
INSTANCES:20180213T080001,20190212T080001,20200211T080001,20210209T080001
292+
293+
RRULE:FREQ=DAILY;BYMINUTE=1,2,3,4;INTERVAL=2;COUNT=3
294+
DTSTART:20241018
295+
INSTANCES:20241018,20241020,20241022

0 commit comments

Comments
 (0)