Skip to content

Commit

Permalink
⚡ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency committed May 19, 2023
1 parent 401cffd commit a7faf7c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class GoogleCalendar implements INodeType {
}
}

if (additionalFields.allday) {
if (additionalFields.allday === 'yes') {
body.start = {
date: timezone
? moment.tz(start, timezone).utc(true).format('YYYY-MM-DD')
Expand All @@ -281,6 +281,7 @@ export class GoogleCalendar implements INodeType {
: moment.tz(end, moment.tz.guess()).utc(true).format('YYYY-MM-DD'),
};
}

//exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z
//https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html
body.recurrence = [];
Expand Down Expand Up @@ -526,7 +527,8 @@ export class GoogleCalendar implements INodeType {
body.reminders.overrides = reminders;
}
}
if (updateFields.allday && updateFields.start && updateFields.end) {

if (updateFields.allday === 'yes' && updateFields.start && updateFields.end) {
body.start = {
date: updateTimezone
? moment.tz(updateFields.start, updateTimezone).utc(true).format('YYYY-MM-DD')
Expand Down

0 comments on commit a7faf7c

Please sign in to comment.