Change data-language format to ISO639-1 (#25278)
This commit is contained in:
@@ -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}"'
|
||||
|
||||
Reference in New Issue
Block a user