Permalink
Browse files

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

…mezone Rather Than Server Time
  • Loading branch information...
1 parent 735de1c commit 92d0dd9fb89ce708c5cacf0bc8a2340cbc1c763e @mrmark mrmark committed with jsnfwlr Nov 4, 2011
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);

0 comments on commit 92d0dd9

Please sign in to comment.