From 557e6772114f0adb209cf1fd85e0ee5f91259c80 Mon Sep 17 00:00:00 2001 From: Ali-Salman29 Date: Fri, 21 Jun 2024 09:21:55 +0200 Subject: [PATCH] fix: update date to English and default printing to A3 --- lms/djangoapps/certificates/views/webview.py | 2 +- lms/templates/certificates/_accomplishment-rendering.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/certificates/views/webview.py b/lms/djangoapps/certificates/views/webview.py index 69c8e7534de9..ff2c665dd642 100644 --- a/lms/djangoapps/certificates/views/webview.py +++ b/lms/djangoapps/certificates/views/webview.py @@ -123,7 +123,7 @@ def _update_certificate_context(context, course, course_overview, user_certifica else: date = display_date_for_certificate(course, user_certificate) # Translators: The format of the date includes the full name of the month - date = strftime_localized(date, "%B %-d, %Y") + date = date.strftime("%B %-d, %Y") context['certificate_date_issued'] = date # SDAIA: Adding Date in Arabic context['arabic_certificate_date_issued'] = convert_date_to_arabic(date) diff --git a/lms/templates/certificates/_accomplishment-rendering.html b/lms/templates/certificates/_accomplishment-rendering.html index db063363d309..5af14b19e0b4 100644 --- a/lms/templates/certificates/_accomplishment-rendering.html +++ b/lms/templates/certificates/_accomplishment-rendering.html @@ -6,8 +6,10 @@ SDAIA Academy - Certificate of completion