Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ruleOpts['until'] = new Date(
parseInt(end.datetime.year, 10),
parseInt(end.datetime.month, 10),
parseInt(end.datetime.date, 10),
parseInt(end.datetime.hour, 10),
parseInt(end.datetime.minute, 10)
);
}
if (repeat.include) {
ruleOpts['freq'] = repeat.freq;
ruleOpts['interval'] = repeat.interval;
}
return RRule.optionsToString(ruleOpts);
}
if (end.include) {
ruleOpts['until'] = new Date(
parseInt(end.datetime.year, 10),
parseInt(end.datetime.month, 10),
parseInt(end.datetime.date, 10),
parseInt(end.datetime.hour, 10),
parseInt(end.datetime.minute, 10)
);
}
if (repeat.include) {
ruleOpts['freq'] = repeat.freq;
ruleOpts['interval'] = repeat.interval;
}
return RRule.optionsToString(ruleOpts);
}