feat: support intervals for rrules

This commit is contained in:
Raito Bezarius 2022-02-21 22:13:44 +01:00
parent 7674dc956a
commit 15f203426e
2 changed files with 7 additions and 3 deletions

View file

@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<html lang="fr">
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<title>Club Réseau</title>
<title>Calendrier du Club Réseau</title>
<link rel='icon' type='image/png' href='/favicon.png'>
<link rel='stylesheet' href='/global.css'>

View file

@ -61,12 +61,16 @@ function fcEventFromjCalEvent(cal) {
}
if (evt.rrule) {
const { freq, byday } = evt.rrule;
const { freq, byday, interval } = evt.rrule;
fcEvent.rrule = {
freq,
byweekday: byday,
dtstart: evt.dtstart,
};
if (interval) {
fcEvent.rrule.interval = interval;
}
}
return fcEvent;