Skip to content

Commit

Permalink
Do not apply implicit ByMonthDayRule when FREQ=MONTHLY and BYDAY is set
Browse files Browse the repository at this point in the history
  • Loading branch information
spitty committed Feb 8, 2020
1 parent 493b3c9 commit f1dfb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/fortuna/ical4j/model/Recur.java
Expand Up @@ -944,8 +944,8 @@ private DateList getCandidates(final Calendar rootSeed, final Date date, final V
if (log.isDebugEnabled()) {
log.debug("Dates after BYMONTHDAY processing: " + dates);
}
} else if (frequency == Frequency.MONTHLY || (frequency == Frequency.YEARLY && yearDayList.isEmpty()
&& weekNoList.isEmpty() && dayList.isEmpty())) {
} else if ((frequency == Frequency.MONTHLY && dayList.isEmpty()) ||
(frequency == Frequency.YEARLY && yearDayList.isEmpty() && weekNoList.isEmpty() && dayList.isEmpty())) {

NumberList implicitMonthDayList = new NumberList();
implicitMonthDayList.add(rootSeed.get(Calendar.DAY_OF_MONTH));
Expand Down

0 comments on commit f1dfb00

Please sign in to comment.