From d69efe4f400ec6a09d2b6aa121f4d4b8b7a6d19d Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 7 Nov 2012 17:39:53 +0100 Subject: [PATCH] Datetime human readable --- weboob/applications/boobmsg/boobmsg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/applications/boobmsg/boobmsg.py b/weboob/applications/boobmsg/boobmsg.py index 8a45d6fe..4605019d 100644 --- a/weboob/applications/boobmsg/boobmsg.py +++ b/weboob/applications/boobmsg/boobmsg.py @@ -100,7 +100,7 @@ class XHtmlFormatter(IFormatter): result = "
\n" result += "

%s

" % (obj.title) result += "
" - result += "
Date
%s
" % (obj.date) + result += "
Date
%s
" % (obj.date.strftime('%Y-%m-%d %H:%M')) result += "
Sender
%s
" % (obj.sender) result += "
Signature
%s
" % (obj.signature) result += "
" @@ -116,7 +116,7 @@ class MessageFormatter(IFormatter): result = u'%sTitle:%s %s\n' % (self.BOLD, self.NC, obj.title) result += u'%sDate:%s %s\n' % (self.BOLD, - self.NC, obj.date) + self.NC, obj.date.strftime('%Y-%m-%d %H:%M')) result += u'%sFrom:%s %s\n' % (self.BOLD, self.NC, obj.sender) if hasattr(obj, 'receivers') and obj.receivers: