Skip to content

Conversation

@SiddheshCodes4554
Copy link

PR Description: Optimize Slot Refreshing on Timezone Change

What does this PR do?

This PR optimizes how available slots are refreshed when a booker changes their timezone in the booking interface.

Currently, the application triggers a fresh fetch of available slots from the server whenever the booker's timezone is updated. While this is necessary for events where the schedule is strictly restricted to the booker's timezone (useBookerTimezone: true), it is redundant for standard events where slots can be converted client-side.

Changes:

Visual Demo (For contributors especially)

Image Demo:

Real Booking UI Snapshot
A snapshot of a real Cal.com booking page, showing the timezone selector and available slots.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code.
  • N/A (Documentation update not required for this internal change).
  • I confirm automated tests are in place that prove my fix is effective.

How should this be tested?

  1. Standard Event (useBookerTimezone: false):
    • Open a booking page.
    • Change your timezone using the selector.
    • Expected: No new getSchedule request in the Network tab. Slots update visually.
  2. Restricted Event (useBookerTimezone: true):
    • Open an event where "Restrict schedule to booker timezone" is enabled.
    • Change your timezone.
    • Expected: A new getSchedule request is triggered to recalculate availability server-side.

Checklist

  • I have read the contributing guide
  • My code follows the style guidelines of this project
  • I have checked if my changes generate no new warnings

@SiddheshCodes4554 SiddheshCodes4554 requested review from a team as code owners January 4, 2026 14:43
@vercel
Copy link

vercel bot commented Jan 4, 2026

@SiddheshCodes4554 is attempting to deploy a commit to the cal-staging Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 4, 2026
@github-actions github-actions bot added High priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work ✅ good first issue Good for newcomers 🐛 bug Something isn't working labels Jan 4, 2026
@CLAassistant
Copy link

CLAassistant commented Jan 4, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync ✅ good first issue Good for newcomers High priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upon changing timezone, we need to update slots when restrictionSchedule is being used with useBookerTimezone enabled

2 participants