From fb28fa95c9b9f7f1cb6f4b81341f37fb0666e986 Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Wed, 3 Sep 2025 13:19:17 -0400 Subject: [PATCH] Fix recurring events from previous years not showing up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend recurring event expansion date range from 30 days to 100 years in the past. This ensures yearly recurring events created many years ago (birthdays, anniversaries, historical dates) properly generate their current year occurrences. The backend correctly includes old recurring events that could have occurrences in the requested month, but the frontend was only expanding occurrences within a 30-day historical window, missing events from previous years. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/src/services/calendar_service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/services/calendar_service.rs b/frontend/src/services/calendar_service.rs index 428bd5f..2fe2348 100644 --- a/frontend/src/services/calendar_service.rs +++ b/frontend/src/services/calendar_service.rs @@ -271,8 +271,8 @@ impl CalendarService { pub fn expand_recurring_events(events: Vec) -> Vec { let mut expanded_events = Vec::new(); let today = chrono::Utc::now().date_naive(); - let start_range = today - Duration::days(30); // Show past 30 days - let end_range = today + Duration::days(365); // Show next 365 days + let start_range = today - Duration::days(36500); // Show past 100 years (to catch any historical yearly events) + let end_range = today + Duration::days(36500); // Show next 100 years for event in events { if let Some(ref rrule) = event.rrule {