From a2b417c0a00ade1b063a920845ebc690e801587d Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 15 Jan 2021 16:31:10 +0000 Subject: [PATCH] Honour SOURCE_DATE_EPOCH for VERSION default (GitHub PR #13) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7248 212acab6-be3b-0410-9dea-997c60f758d6 --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 548e248a..c247da89 100644 --- a/SConstruct +++ b/SConstruct @@ -96,8 +96,8 @@ default_doctype = 'html' if defenv.WhereIs('hhc', os.environ['PATH']): default_doctype = 'chm' -from time import strftime, gmtime -cvs_version = strftime('%d-%b-%Y.cvs', gmtime()) +import time +cvs_version = time.strftime('%d-%b-%Y.cvs', time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))) opts = Variables()