CONTRIB-4686 narrow condition for suppressing date/time in student view

See https://tracker.moodle.org/browse/CONTRIB-4686 for explanation.