Skip to content

Normalize event times for deduplication#938

Draft
stanleyrya wants to merge 3 commits intomainfrom
cursor/normalize-event-times-for-deduplication-5a58
Draft

Normalize event times for deduplication#938
stanleyrya wants to merge 3 commits intomainfrom
cursor/normalize-event-times-for-deduplication-5a58

Conversation

@stanleyrya
Copy link
Copy Markdown
Owner

Normalize event dates to UTC for deduplication and fix recurring event generation to correctly handle timezones and monthly patterns.

Event deduplication was failing for recurring events because startDate was inconsistent across different parsers (UTC vs. local timezone) and the getVisibleEventDates function was losing timezone information when generating occurrences. This led to incorrect date keys for deduplication. Additionally, monthly recurring events with "last Saturday" patterns were not generating correct occurrence dates. The changes ensure that timezone information is preserved during recurrence expansion and that all dates are consistently normalized to UTC for deduplication keys.


Open in Cursor Open in Web

Co-authored-by: stanleyrya <stanleyrya@gmail.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Oct 12, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 2 commits October 12, 2025 17:53
Co-authored-by: stanleyrya <stanleyrya@gmail.com>
Co-authored-by: stanleyrya <stanleyrya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants