Skip to content

Commit

Permalink
Enforce range on list
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jul 9, 2020
1 parent 08f0113 commit 3c41148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/fortuna/ical4j/model/Recur.java
Expand Up @@ -797,7 +797,7 @@ private List<T> getCandidates(final T rootSeed, final T date) {
} else if (frequency == Frequency.MONTHLY || (frequency == Frequency.YEARLY && yearDayList.isEmpty()
&& weekNoList.isEmpty() && dayList.isEmpty())) {

List<Integer> implicitMonthDayList = new NumberList();
List<Integer> implicitMonthDayList = new NumberList(ChronoField.DAY_OF_MONTH.range(), false);
// where seed doesn't provide timezone rules derive using system default timezone..
implicitMonthDayList.add(new TemporalAdapter<>(rootSeed).toLocalTime().getDayOfMonth());
ByMonthDayRule<T> implicitRule = new ByMonthDayRule<>(implicitMonthDayList, frequency);
Expand Down

0 comments on commit 3c41148

Please sign in to comment.