老師的頁面
moodle\mod\assign\renderer.php
render_assign_grading_summary
// 顯示cutoffdate
if($summary->cutoffdate){
$cutdate = $summary->cutoffdate;
$this->add_table_row_tuple($t, get_string('cutoffdate', 'assign'), userdate($cutdate));
}
學生的頁面
moodle\mod\assign\renderer.php
Line : 852(render_assign_submission_status)
if ($status->cutoffdate) {
// Cut off date.
$row = new html_table_row();
$cell1 = new html_table_cell(get_string('cutoffdate', 'assign'));
$cell2 = new html_table_cell(userdate($status->cutoffdate));
$row->cells = array($cell1, $cell2);
$t->data[] = $row;
}