Fridrich Strba 2023-09-14 21:44:56 +00:00 committed by Git OBS Bridge
parent c688cf5270
commit 086ed3147d

View File

@ -18,7 +18,7 @@
public class CompiledAtASTTransformation implements ASTTransformation {
- private final static compileTime = new Date().toString()
+ private final static compileTime = (System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))) : new Date()).toString()
+ private final static compileTime = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))).toString()
public void visit(ASTNode[] astNodes, SourceUnit sourceUnit) {