Skip to content
Snippets Groups Projects
Unverified Commit e66ff411 authored by Mahyar Damavand's avatar Mahyar Damavand Committed by GitHub
Browse files

Change data-language format to ISO639-1 (#25278)

parent e0aa4597
No related branches found
Tags release-2020-12-18-12.59
No related merge requests found
......@@ -193,7 +193,7 @@ class DateSummary(object):
Note: this returns a span that will be localized on the client.
"""
locale = to_locale(get_language())
locale = get_language()
user_timezone = user_timezone_locale_prefs(crum.get_current_request())['user_timezone']
return HTML(
u'<span class="date localized-datetime" data-format="{date_format}" data-datetime="{date_time}"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment