Reset ZipEntry timestamps to 2010-01-01 in order to prevent negative value

This commit is contained in:
Naoki Takezoe 2021-01-14 01:44:44 +09:00
parent 844deab78c
commit 5ce3a174e8
1 changed files with 4 additions and 1 deletions

View File

@ -1778,7 +1778,10 @@ object Defaults extends BuildCommon {
config,
s.cacheStoreFactory,
s.log,
sys.env.get("SOURCE_DATE_EPOCH").map(_.toLong * 1000).orElse(Some(0L))
sys.env
.get("SOURCE_DATE_EPOCH")
.map(_.toLong * 1000)
.orElse(Some(1262304000000L)) // 2010-01-01
)
config.jar
}