From cc525cf49e7d7d934daf1e9d1aa5f22c5721e6d9 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 9 Oct 2012 09:06:44 +0200 Subject: Replaced ctime() by strftime('%Y-%m-%d %H:%M'). --- source/pyAggr3g470r.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index dd26807f..081e6223 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -389,7 +389,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s%s%s""" % \ (feed["feed_id"], article["article_id"], not_read_begin, \ article["article_title"][:150], not_read_end, description) + like + "
\n" @@ -619,7 +619,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s%s%s""" % \ (feed["feed_id"], article["article_id"], not_read_begin, \ article_title, not_read_end, description) + like + "
\n" @@ -639,7 +639,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s
\n""" % \ (feed["feed_id"], article["article_id"], article["article_title"][:150], description) @@ -724,7 +724,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s%s%s""" % \ (feed_id, article["article_id"], not_read_begin, \ article["article_title"][:150], not_read_end, description) + like + "
\n" @@ -771,7 +771,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s
\n""" % \ (feed["feed_id"], article["article_id"], article["article_title"][:150], description) @@ -800,7 +800,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s
\n""" % \ (feed_id, article["article_id"], article["article_title"][:150], description) @@ -1041,7 +1041,7 @@ class Root: # a description line per article (date, title of the article and # CSS description tooltips on mouse over) - html += article["article_date"].ctime() + " - " + \ + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ """%s%s
\n""" % \ (feed["feed_id"], article["article_id"], article["article_title"][:150], description) html += "
\n" -- cgit