Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e1ad295a
Commit
e1ad295a
authored
Aug 16, 2017
by
George Song
Committed by
GitHub
Aug 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15764 from pepeportela/teltek/i18n_certificate_date_utils
Teltek/i18n certificate date utils
parents
66fe1c9a
2bea8be0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
lms/djangoapps/certificates/views/webview.py
+2
-1
No files found.
lms/djangoapps/certificates/views/webview.py
View file @
e1ad295a
...
...
@@ -43,6 +43,7 @@ from openedx.core.lib.courses import course_image_url
from
student.models
import
LinkedInAddToProfileConfiguration
from
util
import
organizations_helpers
as
organization_api
from
util.views
import
handle_500
from
util.date_utils
import
strftime_localized
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
...
...
@@ -98,7 +99,7 @@ def _update_certificate_context(context, user_certificate, platform_name):
# Translators: The format of the date includes the full name of the month
context
[
'certificate_date_issued'
]
=
_
(
'{month} {day}, {year}'
)
.
format
(
month
=
user_certificate
.
modified_date
.
strftime
(
"
%
B"
),
month
=
strftime_localized
(
user_certificate
.
modified_date
,
"
%
B"
),
day
=
user_certificate
.
modified_date
.
day
,
year
=
user_certificate
.
modified_date
.
year
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment