Unverified Commit 7dc23337 authored by Mark Stenglein's avatar Mark Stenglein
Browse files

Fix the EXDATE parameter

- Per @takkaria 's suggestion, actually pay attention to the
  spec and put the EXDATE parameter as it's own line.
- Also use a colon instead of an equal sign (since it is it's
  own property)

TODO: Write the test case(s) for this.
parent 84d25812
...@@ -702,14 +702,17 @@ var ICalEvent = function(_data, calendar) { ...@@ -702,14 +702,17 @@ var ICalEvent = function(_data, calendar) {
g += ';BYMONTHDAY=' + data.repeating.byMonthDay.join(','); g += ';BYMONTHDAY=' + data.repeating.byMonthDay.join(',');
} }
if(data.repeating.exclude) { g += '\r\n';
g += ';EXDATE='; }
var sArr = [];
data.repeating.exclude.forEach(function(excludedDate) { // REPEATING EXCLUSION
sArr.push(tools.formatDate(excludedDate)); if(data.repeating.exclude) {
}); g += 'EXDATE:';
g += sArr.join(','); var sArr = [];
} data.repeating.exclude.forEach(function(excludedDate) {
sArr.push(tools.formatDate(excludedDate));
});
g += sArr.join(',');
g += '\r\n'; g += '\r\n';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment