diff --git a/ts/scripts/get-expire-time.ts b/ts/scripts/get-expire-time.ts index 8b88691dc..e4702d0a9 100644 --- a/ts/scripts/get-expire-time.ts +++ b/ts/scripts/get-expire-time.ts @@ -8,7 +8,8 @@ import { writeFileSync } from 'fs'; import { DAY } from '../util/durations'; const unixTimestamp = parseInt( - execSync('git show -s --format=%ct').toString('utf8'), + process.env.SOURCE_DATE_EPOCH || + execSync('git show -s --format=%ct').toString('utf8'), 10 ); const buildCreation = unixTimestamp * 1000;