-
Notifications
You must be signed in to change notification settings - Fork 3
Advanced date override handling and timezone compatibility improvements #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: date-algorithm-base
Are you sure you want to change the base?
Conversation
* fix date override for fixed round robin + time zone in date override * check if slot is within working hours of fixed hosts * add test for date override in different time zone * fix date overrides for not fixed hosts (round robin) * code clean up * fix added test * use the correct timezone of user for date overrides --------- Co-authored-by: CarinaWolli <[email protected]>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||
User description
PR #6
PR Type
Bug fix
Description
Fix date override handling for different timezones
Ensure slots respect organizer timezone when checking availability
Add timezone offset calculations for date override comparisons
Validate slots within working hours and date overrides correctly
Diagram Walkthrough
File Walkthrough
getSchedule.test.ts
Add timezone-aware date override testapps/web/test/lib/getSchedule.test.ts
organizer
slots.ts
Apply timezone offset to date overridespackages/lib/slots.ts
slots.ts
Enhance availability check with timezone-aware overridespackages/trpc/server/routers/viewer/slots.ts
dateOverrides,workingHours, andorganizerTimeZoneparameters tocheckIfIsAvailablecalculation
hosts
schedule.d.ts
Add timezone field to TimeRange typepackages/types/schedule.d.ts
timeZonefield toTimeRangetype