From 92d0dd9fb89ce708c5cacf0bc8a2340cbc1c763e Mon Sep 17 00:00:00 2001 From: Mark Nielsen Date: Fri, 4 Nov 2011 12:22:14 -0700 Subject: [PATCH] MDL-30059: Assignment Submission Notification Should Use Teacher's Timezone Rather Than Server Time --- mod/assignment/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 727b64e9ed0..99adc601cf2 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -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);