diff --git a/apps/web/src/api/schedules.ts b/apps/web/src/api/schedules.ts index 6117488e..b4ed92d4 100644 --- a/apps/web/src/api/schedules.ts +++ b/apps/web/src/api/schedules.ts @@ -56,8 +56,12 @@ export async function updateSchedule(schedule: IScheduleItem): Promise { - const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone - const res = await fetch(`${SERVER_URL}/v1/schedules/dailyCount?from=${from.toISOString()}&to=${to.toISOString()}&timezone=${timezone}`, { + const params = new URLSearchParams({ + from: from.toISOString(), + to: to.toISOString(), + timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, + }) + const res = await fetch(`${SERVER_URL}/v1/schedules/dailyCount?${params.toString()}`, { method: 'GET', }) if (!res.ok) {