diff --git a/groovy18-timestamp.patch b/groovy18-timestamp.patch index e795acf..0669c5c 100644 --- a/groovy18-timestamp.patch +++ b/groovy18-timestamp.patch @@ -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) {