We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gen-man.py
1 parent b8ec070 commit 563ed58Copy full SHA for 563ed58
scripts/gen-man.py
@@ -10,8 +10,9 @@
10
11
from json import load
12
from datetime import date
13
+from time import time
14
from re import search
-from os import path
15
+from os import environ, path
16
17
18
###### Text Decorations Tags ######
@@ -34,7 +35,9 @@
34
35
# title (center header)
36
titlePage = "Fastfetch man page"
37
# date (center footer)
-todayDate = date.today().strftime("%b %d %Y") # format : "Month (abbreviation) Day Year"
38
+# format : "Month (abbreviation) Day Year"
39
+todayDate = date.fromtimestamp(
40
+ int(environ.get("SOURCE_DATE_EPOCH", time()))).strftime("%b %d %Y")
41
# file to fastfetch version (left footer)
42
pathToVersionFile = path.join(pathToCurrentDir, "../CMakeLists.txt")
43
0 commit comments