Increase calendar fetch window to 30 days
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user