Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:fmccarthy:AI:pulsar:java
hppc
hppc-timestamp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hppc-timestamp.patch of Package hppc
--- 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() {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor