typo; flip dt and now in relative date formatter
This commit is contained in:
parent
f0f3ee6512
commit
f8eee5261a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue