Skip to content

Conversation

@Vipeen-Kumar
Copy link

What does this PR do?

Fixes an issue where available time slots were not refreshed when the user changed the timezone for events that use a restriction schedule.

Previously, changing the timezone updated the UI timezone but did not invalidate and refetch the schedule data, causing stale or incorrect slots to be displayed. This PR ensures the schedule is invalidated and refetched when the timezone changes, only when useBookerTimezone is enabled and a restriction schedule is present, avoiding unnecessary network requests.


Visual Demo

Before

  • Changing the timezone does not update available slots
  • Slots remain based on the previous timezone

After

  • Changing the timezone immediately refreshes available slots
  • Slots correctly reflect the selected timezone

(Screenshots / video can be added if required)


Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code
  • This change does not require documentation updates (N/A)
  • I confirm the fix works as expected through manual testing

How should this be tested?

  1. Open a public booking page for an event with a restriction schedule
  2. Ensure useBookerTimezone is enabled for the event
  3. Navigate to the booking page
  4. Change the timezone using the timezone selector
  5. ✅ Verify that available slots update immediately and reflect the new timezone
  6. Repeat with different timezones to confirm consistent behavior

Expected Result

  • Slots refresh correctly on timezone change
  • No unnecessary refetches when timezone does not change
  • No regression for events without restriction schedules

Checklist

  • Read the contributing guide
  • Code follows existing project patterns
  • No new warnings introduced

@CLAassistant
Copy link

CLAassistant commented Jan 18, 2026

CLA assistant check
All committers have signed the CLA.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 18, 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 18, 2026
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 2 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/S

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