'Set the verification deadline on the course mode admin form.'

def _set_form_verification_deadline(self, form, deadline):

    date_str = (deadline.strftime('%Y-%m-%d') if deadline else None)
    time_str = (deadline.strftime('%H:%M:%S') if deadline else None)
    form.data['verification_deadline_0'] = date_str
    form.data['verification_deadline_1'] = time_str
