From c3c9ae0632c213cb2aaeeb21009bce076f01d9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Wed, 18 Jan 2023 17:13:09 +0100 Subject: [PATCH] Don't take time from .git .git is not included int the Dockerfile thus it cannot be used to get time of last edit --- src/web/tracker/templatetags/version.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/tracker/templatetags/version.py b/src/web/tracker/templatetags/version.py index 46e4f55..0249a74 100644 --- a/src/web/tracker/templatetags/version.py +++ b/src/web/tracker/templatetags/version.py @@ -13,7 +13,9 @@ def version_date(): "%d-%b-%Y %H:%m", time.gmtime( os.path.getmtime( - os.path.abspath(os.path.join(settings.BASE_DIR, "..", "..", ".git")) + os.path.abspath( + os.path.join(settings.BASE_DIR, "..", "..", "pyproject.toml") + ) ) ), )