Occurrence over night

I made a method which sets the end_time-date one day later than the start_time-date, if @params[:end_time] <= @params[:start_time].

So it is possible to create a schedule over night (e.g. from 8pm to 2 am).