summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2023-01-22 10:45:00 +0000
committerAlexandre Flament <alex@al-f.net>2023-01-22 10:45:00 +0000
commit06b5068a2e6fcdb12fe2a420559e722003d44064 (patch)
treee8fb372738ae56fd047eddec5736f3dd8a775e51 /searx
parent674dae946afe3d14b592b5304b895399722403a8 (diff)
downloadsearxng-06b5068a2e6fcdb12fe2a420559e722003d44064.tar.gz
searxng-06b5068a2e6fcdb12fe2a420559e722003d44064.zip
SearXNG version: YYYY.MM.DD without leading zero
Diffstat (limited to 'searx')
-rw-r--r--searx/version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/version.py b/searx/version.py
index fa7cdbc74..9f3de38e9 100644
--- a/searx/version.py
+++ b/searx/version.py
@@ -59,7 +59,7 @@ def get_git_url_and_branch():
def get_git_version():
- git_commit_date_hash = subprocess_run(r"git show -s --date='format:%Y.%m.%d' --format='%cd+%h'")
+ git_commit_date_hash = subprocess_run(r"git show -s --date='format:%-Y.%-m.%-d' --format='%cd+%h'")
tag_version = git_version = git_commit_date_hash
# add "+dirty" suffix if there are uncommited changes except searx/settings.yml