]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Un-force relative in format_date
authorAnton Shestakov <engored@ya.ru>
Sun, 22 Dec 2013 05:07:10 +0000 (13:07 +0800)
committerAnton Shestakov <engored@ya.ru>
Sun, 22 Dec 2013 05:07:10 +0000 (13:07 +0800)
tornado/locale.py

index 310a5178491585bef4ce1cfdc184ab268c6d4bfd..07c6d582b4e6a4093f71485539df5fd66320eaee 100644 (file)
@@ -286,8 +286,6 @@ class Locale(object):
         This method is primarily intended for dates in the past.
         For dates in the future, we fall back to full format.
         """
-        if self.code.startswith("ru"):
-            relative = False
         if isinstance(date, numbers.Real):
             date = datetime.datetime.utcfromtimestamp(date)
         now = datetime.datetime.utcnow()