-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Description
When attempting to create an Event Schedule with the following values, an error is incorrectly triggered:
Provided Values
- Start Date: 2025-01-01
- Start Time: 23:55:30
- End Date: 2025-01-26
- End Time: 00:00:30
The current validation logic in validate_event_dates_and_time() considers only the time portion without accounting for the fact that end_date > start_date. This results in rejecting cross-day schedules where the end time is logically valid but occurs after midnight.
Expected Behavior
The validation logic should account for both the date and time. The following entry should be considered valid:
- Start Date + Start Time: 2025-01-01 23:55:30
- End Date + End Time: 2025-01-26 00:00:30
Steps to Reproduce
- Attempt to create an
Event Schedulewith the above values. - Observe the validation error:
The end time must be after the start time.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Projects
Status
Completed