Skip to content

Commit

Permalink
Remove deprecated warning on strftime on due date extension (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
voegii committed Jun 14, 2024
1 parent 085f54d commit 31dd04e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/mumie_grader.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ public static function get_duedate($mumie, $userid) {
global $DB;
$duedate = $DB->get_record("mumie_duedate", array('userid' => $userid, 'mumie' => $mumie->id));

return $duedate ? strftime(
get_string('strftimedaydatetime', 'langconfig'),
$duedate->duedate
) : "-";
return $duedate ? userdate($duedate->duedate) : "-";
}

/**
Expand Down

0 comments on commit 31dd04e

Please sign in to comment.