Skip to content

Commit

Permalink
Ensure we have a leading zero for days (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Dec 31, 2024
1 parent 606abf3 commit cbadc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/element_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ public static function get_date_format_string(int $date, string $dateformat): st
break;
case 5:
// ISO 8601 date format (YYYY-MM-DD).
$certificatedate = userdate($date, '%Y-%m-%d');
$certificatedate = userdate($date, '%Y-%m-%d', 99, false, false);
break;
default:
$certificatedate = userdate($date, get_string('strftimedate', 'langconfig'));
Expand Down

0 comments on commit cbadc9b

Please sign in to comment.