summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-17 11:43:00 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-17 11:43:00 +0100
commit6f49bd8f08fbd52c67e21477fc2d21553d8220d7 (patch)
treed406680582a736094fff75e8e76d5144fc1aacc9 /searx/webapp.py
parentdead837f570ea62f09469726b9ec8cbe0f8951e2 (diff)
downloadsearxng-6f49bd8f08fbd52c67e21477fc2d21553d8220d7.tar.gz
searxng-6f49bd8f08fbd52c67e21477fc2d21553d8220d7.zip
adding publish date to video-results and rss-feed
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index a52dd6289..d06c58f32 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -168,6 +168,8 @@ def index():
else:
result['publishedDate'] = gettext(u'{hours} hour(s), {minutes} minute(s) ago').format(hours=hours, minutes=minutes) # noqa
else:
+ # TODO using right timezone
+ result['pubdate'] = result['publishedDate'].strftime('%a, %d %b %Y %H:%M:%S +0000')
result['publishedDate'] = format_date(result['publishedDate'])
if search.request_data.get('format') == 'json':