Skip to content

Fix inaccurate recurring-event expansion in Calendar #1046

Description

@RUKAYAT-CODER

Overview
src/components/Calendar.tsx (lines 19-42) approximates MONTHLY recurrence as addWeeks(current, 4) (a fixed 28-day step that drifts off the intended day-of-month) and caps expansion at 52 iterations (line 30). For DAILY events 52 instances cover only ~7 weeks, far short of the 26-week (6-month) window the comment claims, so daily recurrences are silently truncated. Use addMonths for MONTHLY and drive the loop by the window end rather than a fixed 52 cap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendNexjs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions