feat: allow users to create a time slot within a slot that already has begun
Users weren’t able to create a time slot in the calendar if the slot has already begun. The logic now checks if the start time is later or equal to the start of the slot of the current time (i.e. current time is 16:37:28, check is performed against 16:30:00 for a 15 minute calendar slot size). This prevents users from creating slots in the past but allows them to create time slots within a slot that has already begun. If the slot has already begun then the start time of the new time slot is set to the next available 5 minute slot after the current time. This means that if the current time is 16:37:28 and one creates a time slot in the 16:30:00 - 16:45:00 slot window the start time of the new time slot is set to 16:40:00. fixes #167
Loading
Please register or sign in to comment