forked from Icycoide/searxng
adding publish date to video-results and rss-feed
This commit is contained in:
parent
dead837f57
commit
6f49bd8f08
3 changed files with 4 additions and 0 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue