def METHOD_NAME(self, course):
    """
    A utility function that updates-and-commits the certificate display behavior and certificate_available_date
    for the course to fix the stale certificate availability date.
    """
    del course.certificate_available_date
    course.certificates_display_behavior = CertificatesDisplayBehaviors.EARLY_NO_INFO
    # commit the changes
    modulestore().update_item(course, ModuleStoreEnum.UserID.mgmt_command)