From da8c06ba3a3ce3f974b8c0b87a976e199cee3825 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 31 Dec 2024 17:03:07 +0000 Subject: [PATCH] Ensure we have a leading zero for days (#638) --- classes/element_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/element_helper.php b/classes/element_helper.php index e8920471..125b1eb0 100644 --- a/classes/element_helper.php +++ b/classes/element_helper.php @@ -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'));