use timedelta for checking time intervals

when a timerange goes from today to tomorrow
(range given as hour:minute and the end time is before the start time),
just add timedelta(1, 0) to end_time.