CONTRIB-4686: improve logic for display of dates and times in student view