Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…mezone Rather Than Server Time
  • Loading branch information...
commit 92d0dd9fb89ce708c5cacf0bc8a2340cbc1c763e 1 parent 735de1c
Mark Nielsen authored November 04, 2011 phalacee committed November 07, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  mod/assignment/lib.php
2  mod/assignment/lib.php
@@ -1764,7 +1764,7 @@ function email_teachers($submission) {
1764 1764
                 $info->username = fullname($user, true);
1765 1765
                 $info->assignment = format_string($this->assignment->name,true);
1766 1766
                 $info->url = $CFG->wwwroot.'/mod/assignment/submissions.php?id='.$this->cm->id;
1767  
-                $info->timeupdated = strftime('%c',$submission->timemodified);
  1767
+                $info->timeupdated = userdate($submission->timemodified, '%c', $teacher->timezone);
1768 1768
 
1769 1769
                 $postsubject = $strsubmitted.': '.$info->username.' -> '.$this->assignment->name;
1770 1770
                 $posttext = $this->email_teachers_text($info);

0 notes on commit 92d0dd9

Please sign in to comment.
Something went wrong with that request. Please try again.