1234: Add time to the torrents added date - patch from tobbez

This commit is contained in:
Andrew Resch 2010-04-18 14:52:18 -07:00
parent e0f2c2473e
commit 9a632fc3d3
1 changed files with 3 additions and 3 deletions

View File

@ -358,17 +358,17 @@ def ftime(seconds):
def fdate(seconds):
"""
Formats a date string in the locale's date representation based on the systems timezone
Formats a date time string in the locale's date representation based on the systems timezone
:param seconds: time in seconds since the Epoch
:type seconds: float
:returns: a string in the locale's date representation or "" if seconds < 0
:returns: a string in the locale's datetime representation or "" if seconds < 0
:rtype: string
"""
if seconds < 0:
return ""
return time.strftime("%x", time.localtime(seconds))
return time.strftime("%x %X", time.localtime(seconds))
def is_url(url):
"""