Skip to content

Commit

Permalink
fix(pat recurrence): Correct starttime of RDATE in recurrence.
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Feb 13, 2023
1 parent 1681c79 commit e70414f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pat/recurrence/recurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ function widgetSaveToRfc5545(form, icaldata, conf, tz, start_date) {
for (let rdate of icaldata.RDATE) {
if (rdate !== "") {
// RDATE values are "YYYY-MM-DD"
rdate += (rdate.length === 10) ? rdate_time : "";
// by adding "T000000" the recurrence sequence generator of
// plone.event.recurrence adds the current start time correctly
rdate += (rdate.length === 10) ? "T000000" : "";
rdate += tz ? "Z" : "";
tmp_dates.push(rdate);

Expand Down

0 comments on commit e70414f

Please sign in to comment.