Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hppc to version 0.7.1 / rev 4 via SR 1111421
https://build.opensuse.org/request/show/1111421 by user fstrba + anag+factory reproducible
- Loading branch information
1 parent
d2c7369
commit 5b70d4a
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters