mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 14:46:35 +02:00
MDL-30059: Assignment Submission Notification Should Use Teacher's Timezone Rather Than Server Time
This commit is contained in:
parent
735de1c276
commit
92d0dd9fb8
@ -1764,7 +1764,7 @@ class assignment_base {
|
||||
$info->username = fullname($user, true);
|
||||
$info->assignment = format_string($this->assignment->name,true);
|
||||
$info->url = $CFG->wwwroot.'/mod/assignment/submissions.php?id='.$this->cm->id;
|
||||
$info->timeupdated = strftime('%c',$submission->timemodified);
|
||||
$info->timeupdated = userdate($submission->timemodified, '%c', $teacher->timezone);
|
||||
|
||||
$postsubject = $strsubmitted.': '.$info->username.' -> '.$this->assignment->name;
|
||||
$posttext = $this->email_teachers_text($info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user