If you start a workout briefly before midnight so that it continues into the next day, the original workout will be marked as incomplete and a new duplicate entry will be created on the following day.
I think the expected behaviour would be to mark the original workout as completed without duplicating it, i.e use the start time of a workout to place it in the calendar.