Add a day if the end time is before the start time (closes: #d96685)