We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb335e3 commit 22aed67Copy full SHA for 22aed67
fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java
@@ -135,7 +135,9 @@ public static Metadata createXMPFromPDFDocument(PDFDocument pdfDoc) {
135
136
//Set creation date if not available, yet
137
if (info.getCreationDate() == null) {
138
- Date d = new Date();
+ Date d = System.getenv("SOURCE_DATE_EPOCH") == null ?
139
+ new Date() :
140
+ new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
141
info.setCreationDate(d);
142
}
143
0 commit comments