Module: deluge Branch: master Commit: 9a632fc3d3827cbf89aecde69a474736245e7b65
Author: Andrew Resch <[email protected]> Date: Sun Apr 18 14:52:18 2010 -0700 1234: Add time to the torrents added date - patch from tobbez --- deluge/common.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index c41fe7d..3b4f3bd 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): """ -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
