summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-09-23 19:58:14 +0200
committerAlexandre Flament <alex@al-f.net>2022-09-23 20:52:55 +0200
commitd6446be38f3f858c09887a89c8fc490a3c300b95 (patch)
tree1b911cba1b96970455b115d1cc706db52d5613da /searx/webapp.py
parent08b88597052dfdf17e947289d79510fdadad51e3 (diff)
downloadsearxng-d6446be38f3f858c09887a89c8fc490a3c300b95.tar.gz
searxng-d6446be38f3f858c09887a89c8fc490a3c300b95.zip
[mod] science category: various update of about PR 1705
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index e6bda42be..44500911a 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -77,7 +77,7 @@ from searx.webutils import (
is_hmac_of,
is_flask_run_cmdline,
group_engines_in_tab,
- searxng_format_date,
+ searxng_l10n_timespan,
)
from searx.webadapter import (
get_search_query_from_webapp,
@@ -723,7 +723,7 @@ def search():
except ValueError:
result['publishedDate'] = None
else:
- result['publishedDate'] = searxng_format_date(result['publishedDate'])
+ result['publishedDate'] = searxng_l10n_timespan(result['publishedDate'])
# set result['open_group'] = True when the template changes from the previous result
# set result['close_group'] = True when the template changes on the next result