Skip to content
Snippets Groups Projects
Unverified Commit 91d0c43c authored by Ned Batchelder's avatar Ned Batchelder Committed by GitHub
Browse files

Slightly clearer (#26060)

Without to_locale, it's not a locale anymore, so don't call it that.
parent e4b8f56e
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,6 @@ class DateSummary(object):
Note: this returns a span that will be localized on the client.
"""
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}"'
......@@ -203,7 +202,7 @@ class DateSummary(object):
date_format=date_format,
date_time=self.date,
user_timezone=user_timezone,
user_language=locale,
user_language=get_language(),
)
@property
......
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