From 9a632fc3d3827cbf89aecde69a474736245e7b65 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 18 Apr 2010 14:52:18 -0700 Subject: [PATCH] 1234: Add time to the torrents added date - patch from tobbez --- deluge/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index c41fe7de0..3b4f3bd1f 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -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): """