Start time was determined by end time of deleted hours


It happened that when creating new hours on a day where hours were previously deleted, the start time was still determined based on the end time of the deleted hours. We have improved this.