From 320a1823f368ecd09edc740fb02287443c0085ad Mon Sep 17 00:00:00 2001 From: Ruben Rosario Date: Sun, 21 Jun 2026 17:31:43 +0100 Subject: [PATCH] Increase calendar fetch window to 30 days --- src/infrastructure/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infrastructure/api.rs b/src/infrastructure/api.rs index f249afc..d8917f6 100644 --- a/src/infrastructure/api.rs +++ b/src/infrastructure/api.rs @@ -479,7 +479,7 @@ impl ApiClient { let token = self.get_token().await?; let now = chrono::Utc::now(); - let week_later = now + chrono::Duration::days(7); + let end_time = now + chrono::Duration::days(30); let resp = self .client @@ -489,7 +489,7 @@ impl ApiClient { ("orderBy", "startTime"), ("singleEvents", "true"), ("timeMin", &now.format("%Y-%m-%dT%H:%M:%SZ").to_string()), - ("timeMax", &week_later.format("%Y-%m-%dT%H:%M:%SZ").to_string()), + ("timeMax", &end_time.format("%Y-%m-%dT%H:%M:%SZ").to_string()), ("maxResults", &max_results.to_string()), ]) .send()