typo; flip dt and now in relative date formatter

This commit is contained in:
Kyle Mahan 2015-02-22 09:33:27 -08:00
parent f0f3ee6512
commit f8eee5261a

View file

@ -362,7 +362,7 @@ def favicon_for_url(url):
def relative_time(dt):
if dt:
now = datetime.datetime.utcnow()
diff = dt - now
diff = now - dt
years = diff.days // 365
hours = diff.seconds // 60 // 60
minutes = diff.seconds // 60