When a start time like 11:30pm is selected and it forces the end time to midnight or later, usually the end date will change to startdate + 1 day. This is expected and works well except when you initially set the start time (from blank).
Set the start date to anything. Then set the start time to 11:30pm. The end time will be past midnight and the end date will be the same as the start date instead of plus one. And it will trigger a rangeSelected event instead of a rangeError.
When a start time like 11:30pm is selected and it forces the end time to midnight or later, usually the end date will change to startdate + 1 day. This is expected and works well except when you initially set the start time (from blank).
This fiddle demonstrates: http://jsfiddle.net/slicedtoad/uzdbnzwo/1/
Set the start date to anything. Then set the start time to 11:30pm. The end time will be past midnight and the end date will be the same as the start date instead of plus one. And it will trigger a
rangeSelected
event instead of arangeError
.