From 56fb8f6225de1a2e3a8beb32d974cea98ef186f9 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 9 Dec 2008 02:34:08 +0000 Subject: [PATCH] not all use DD/MM/YY, so use locale's date format --- deluge/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index ba029f080..eab2a1eeb 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -319,16 +319,16 @@ def ftime(seconds): def fdate(seconds): """ - Formats a date string in the form of DD/MM/YY based on the systems timezone + Formats a date string in the locale's date representation based on the systems timezone :param seconds: float, time in seconds since the Epoch - :returns: a string in the form of DD/MM/YY or "" if seconds < 0 + :returns: a string in the locale's date representation or "" if seconds < 0 :rtype: string """ if seconds < 0: return "" - return time.strftime("%d/%m/%y", time.localtime(seconds)) + return time.strftime("%x", time.localtime(seconds)) def is_url(url): """