diff options
author | cedricbonhomme <devnull@localhost> | 2012-10-09 09:06:44 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-10-09 09:06:44 +0200 |
commit | cc525cf49e7d7d934daf1e9d1aa5f22c5721e6d9 (patch) | |
tree | 7029216c2c95a6d8008d86f88446c463b132657e | |
parent | Improved the display of the 'statistics' page. (diff) | |
download | newspipe-cc525cf49e7d7d934daf1e9d1aa5f22c5721e6d9.tar.gz newspipe-cc525cf49e7d7d934daf1e9d1aa5f22c5721e6d9.tar.bz2 newspipe-cc525cf49e7d7d934daf1e9d1aa5f22c5721e6d9.zip |
Replaced ctime() by strftime('%Y-%m-%d %H:%M').
-rwxr-xr-x | source/pyAggr3g470r.py | 14 |
1 files 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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s%s%s<span class="classic">%s</span></a>""" % \ (feed["feed_id"], article["article_id"], not_read_begin, \ article["article_title"][:150], not_read_end, description) + like + "<br />\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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s%s%s<span class="classic">%s</span></a>""" % \ (feed["feed_id"], article["article_id"], not_read_begin, \ article_title, not_read_end, description) + like + "<br />\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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s<span class="classic">%s</span></a><br />\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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s%s%s<span class="classic">%s</span></a>""" % \ (feed_id, article["article_id"], not_read_begin, \ article["article_title"][:150], not_read_end, description) + like + "<br />\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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s<span class="classic">%s</span></a><br />\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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s<span class="classic">%s</span></a><br />\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') + " - " + \ """<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s<span class="classic">%s</span></a><br />\n""" % \ (feed["feed_id"], article["article_id"], article["article_title"][:150], description) html += "<hr />\n" |