Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30059: Assignment Submission Notification Should Use Teacher's Ti…

…mezone Rather Than Server Time
  • Loading branch information...
commit 92d0dd9fb89ce708c5cacf0bc8a2340cbc1c763e 1 parent 735de1c
@mrmark mrmark authored jsnfwlr committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/lib.php
View
2  mod/assignment/lib.php
@@ -1764,7 +1764,7 @@ function email_teachers($submission) {
$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);
Please sign in to comment.
Something went wrong with that request. Please try again.