fix bug where some end times don't get converted to 24-hour format and become less than the start time