Fix when course status goes from current to passed

Make courses end, and switch to 'passed' status, at the end
rather than the beginning of the day.

bug: 47361
Change-Id: I836d39d34849f932f0fa13f98ac27f4f44e823bd
Merge "Fix when course status goes from current to passed"