forked from pool/hppc
16 lines
721 B
Diff
16 lines
721 B
Diff
--- hppc-0.7.1/hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java 2015-05-07 09:32:26.000000000 +0200
|
|
+++ hppc-0.7.1/hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java 2023-09-14 16:19:35.996103476 +0200
|
|
@@ -88,7 +88,11 @@
|
|
*/
|
|
public String getTimeNow() {
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.ROOT);
|
|
- return format.format(new Date());
|
|
+ Date now = new Date();
|
|
+ if (System.getenv("SOURCE_DATE_EPOCH") != null) {
|
|
+ now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
|
|
+ }
|
|
+ return format.format(now);
|
|
}
|
|
|
|
public String getTemplateFile() {
|