Fridrich Strba 2023-09-14 04:25:26 +00:00 committed by Git OBS Bridge
parent bcb4e32499
commit 6d072e9215

View File

@ -6,7 +6,7 @@ diff -urEbwB org.eclipse.tycho-tycho-1.6.0.orig/tycho-packaging-plugin/src/main/
@Override
public Date getTimestamp(MavenSession session, MavenProject project, MojoExecution execution) {
+ if (System.getenv("SOURCE_DATE_EPOCH") != null) {
+ return new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))));
+ return new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
+ }
return session.getStartTime();
}