Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/api/schedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export async function updateSchedule(schedule: IScheduleItem): Promise<ISchedule
}

export async function getDailyScheduleCount(from: Date, to: Date): Promise<IGetDailyScheduleCountResponse> {
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
const timezone = encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)
const res = await fetch(`${SERVER_URL}/v1/schedules/dailyCount?from=${from.toISOString()}&to=${to.toISOString()}&timezone=${timezone}`, {
method: 'GET',
})
Comment thread
ninaxlee marked this conversation as resolved.
Outdated
Expand Down