aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpyAggr3g470r.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index ea708d18..1284ea3e 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -183,7 +183,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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"
@@ -405,7 +405,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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"
@@ -633,7 +633,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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"
@@ -654,7 +654,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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)
@@ -741,7 +741,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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"
@@ -789,7 +789,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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)
@@ -818,7 +818,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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)
@@ -904,8 +904,7 @@ class Root:
target="_blank"><img src="%s" width="28" height="28" /></a></h2>\n""" % \
(feed["feed_id"], feed["feed_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"])
- html += str(article["article_date"]).split(' ')[0][-2:] + " (" + \
- str(article["article_date"]).split(' ')[1] + ") - " + \
+ html += article["article_date"].strftime("%a %d (%H:%M:%S) ") + \
"""<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"
@@ -1069,7 +1068,7 @@ class Root:
# a description line per article (date, title of the article and
# CSS description tooltips on mouse over)
- html += str(article["article_date"]) + " - " + \
+ html += article["article_date"].ctime() + " - " + \
"""<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"
bgstack15