-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor timezone detection and formatting functions, and normalize s…
…lot times - Refactored the timezone detection and formatting functions in the utils.ts file to improve code readability and maintainability. - Added new utility functions `normalizeUTCTime`, `normalizeWeeklySlot`, and `normalizeCustomSlot` to ensure all times are in UTC format. - Updated the `convertUTCToLocalDate` function to always parse the UTC time as a string. - Adjusted the `convertUTCToLocalDate` function to handle cases where the local time is on the previous day. - Added the `isSlotRelevantForDay` function to determine if a slot is relevant for a specific day. - Created the `createWeeklySlot` and `createCustomSlot` functions to generate slot timings based on selected dates and times. - Updated the `mergeOverlappingSlots` function to handle overlapping slots correctly.
- Loading branch information
Showing
2 changed files
with
144 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.