Skip to content

Commit 8ee0134

Browse files
committed
Corrected occurencies for reccurent dates
1 parent e74a0c6 commit 8ee0134

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/logic/occurencies.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ function getDates(date, startDay, finishDay) {
6868
}
6969
case 'reccurenceDate':
7070
{
71-
return date.rrules.map(r => {
72-
const rrule = rrulestr(r);
73-
return rrule.between(startDay, finishDay);
74-
}).reduce((a, b) => a.concat(b)).map(x => ({
71+
return RRule.fromString(date.rrule).between(startDay, finishDay)
72+
.map(x => ({
7573
value: x,
7674
hasTime: date.hasTime,
7775
belonging: null

0 commit comments

Comments
 (0)