Increase calendar fetch window to 30 days

This commit is contained in:
Ruben Rosario
2026-06-21 17:31:43 +01:00
parent 0c142f1f67
commit 320a1823f3
+2 -2
View File
@@ -479,7 +479,7 @@ impl ApiClient {
let token = self.get_token().await?; let token = self.get_token().await?;
let now = chrono::Utc::now(); let now = chrono::Utc::now();
let week_later = now + chrono::Duration::days(7); let end_time = now + chrono::Duration::days(30);
let resp = self let resp = self
.client .client
@@ -489,7 +489,7 @@ impl ApiClient {
("orderBy", "startTime"), ("orderBy", "startTime"),
("singleEvents", "true"), ("singleEvents", "true"),
("timeMin", &now.format("%Y-%m-%dT%H:%M:%SZ").to_string()), ("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()), ("maxResults", &max_results.to_string()),
]) ])
.send() .send()