fix: calendar cache date ranges (#18237)
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
4df4383e1e
commit
ae7bbaf414
2 files changed
+3
-3
No files matched your search
@@ -9,7 +9,7 @@ export const getTimeMin = (timeMin?: string) => {
|
||||
/** Expand the end date to the end of the next month */
|
||||
export function getTimeMax(timeMax?: string) {
|
||||
const date = timeMax ? new Date(timeMax) : new Date();
|
||||
date.setMonth(date.getMonth() + 2);
|
||||
date.setMonth(date.getMonth() + 1);
|
||||
date.setDate(0);
|
||||
date.setHours(0, 0, 0, 0);
|
||||
return date.toISOString();
|
||||
|
||||
Reference in new issue
Block a user