I don't know about midnight but you have gaps in your schedule around 17.00.
There should be no white lines showing. Drawing schedules is tricky you need to overdraw and never move the mouse backwards, if you do you'll get a gap that can be tiny or near impossible to see but will create a break in your scheduling. It can make it diffcult to get precise timing. Sometimes you have to compromise by a few mins.
The way to draw them eg if you want 17.00 as a changeover is overdraw the yellow out to 18.00 or so, then draw the purple back across to approx 17.00. If you accidentally overshoot or move the mouse back even a fraction, re-extend them from scratch ie go back to grabbing the yellow and over extending it again, overlapping each, each time. When overdrawing keep moving and let go of the mouse button whilst moving. If you stop or move the mouse back slightly you'll get another gap. You can do this with the ends ie 0 and 24. Grab the end here and pull it back, then regrab the end and pull it to the end apart from don't stop at the end with your mouse keep going and let go when outside the grid whilst the mouse is still moving.
Don't ever try to pull 2 lines to the precise time point. You'll nearly always get visible or invisible gaps. Overlapping is the way to go.
What it really needs is magnetic timeline style snapping as found in many video editors but unfortunately Dahua don't make it that easy.