bug fix in dayTimeRange event rule, in case end_time <= start_time