MDL-64011 badges: Changed the date format of endorsements.

This commit is contained in:
Adrian Greeve 2018-11-15 14:32:15 +08:00
parent 208950cff0
commit 750f1588fa

View File

@ -1051,7 +1051,7 @@ class core_badges_renderer extends plugin_renderer_base {
$dl[get_string('issueremail', 'badges')] = $endorsement->issueremail;
$dl[get_string('issuerurl', 'badges')] = html_writer::link($endorsement->issuerurl, $endorsement->issuerurl,
array('target' => '_blank'));
$dl[get_string('dateawarded', 'badges')] = date('c', $endorsement->dateissued);
$dl[get_string('dateawarded', 'badges')] = userdate($endorsement->dateissued);
$dl[get_string('claimid', 'badges')] = html_writer::link($endorsement->claimid, $endorsement->claimid,
array('target' => '_blank'));
$dl[get_string('claimcomment', 'badges')] = $endorsement->claimcomment;