Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Google Calendar node): Correctly set dtstart for recurrence rules in addNextOccurrence function #12266

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcelreschke
Copy link

Summary

Fixes #12262 issue in the Google Calendar node, where the nextOccurrence field was not preserving the original event's time when calculating recurring events. The changes include:

  • Fixed time calculation in addNextOccurrence function by initializing RRule with proper dtstart option
  • Added comprehensive test suite to verify time preservation and edge cases

It ensures the next occurrence maintains the same time as the original event

Related Linear tickets, GitHub issues, and Community forum posts

Fixes #12262

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included
  • No documentation update needed
  • Non-critical bug fix; PR doesn't need to be labelled release/backport

@marcelreschke marcelreschke changed the title fix(Calendar): Correctly set dtstart for recurrence rules in addNextOccurrence function; fixes #12262 fix(Calendar): Correctly set dtstart for recurrence rules in addNextOccurrence function Dec 17, 2024
@CLAassistant
Copy link

CLAassistant commented Dec 17, 2024

CLA assistant check
All committers have signed the CLA.

@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request in linear Issue or PR has been created in Linear for internal review labels Dec 17, 2024
@Joffcom
Copy link
Member

Joffcom commented Dec 17, 2024

Hey @marcelreschke,

Thanks for the PR, We have created "GHC-605" as the internal reference to get this reviewed.

One of us will be in touch if there are any changes needed, in most cases this is normally within a couple of weeks but it depends on the current workload of the team.

@marcelreschke marcelreschke changed the title fix(Calendar): Correctly set dtstart for recurrence rules in addNextOccurrence function fix(Google Calendar node): Correctly set dtstart for recurrence rules in addNextOccurrence function Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member in linear Issue or PR has been created in Linear for internal review node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google Calendar node get:event returns incorrect time for recurring event's nextOccurrence
3 participants