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

This commit is contained in:
Mahyar Damavand
2021-01-13 20:37:59 +03:30
committed by GitHub
parent e0aa459732
commit e66ff41194

View File

@@ -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}"'