Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
java-11-openjdk.34818
reproducible-properties.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible-properties.patch of Package java-11-openjdk.34818
--- a/src/java.base/share/classes/java/util/Properties.java +++ b/src/java.base/share/classes/java/util/Properties.java @@ -929,7 +929,11 @@ class Properties extends Hashtable<Object,Object> { if (comments != null) { writeComments(bw, comments); } - bw.write("#" + new Date().toString()); + Date now = new Date(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } + bw.write("#" + now.toString()); bw.newLine(); synchronized (this) { for (Map.Entry<Object, Object> e : entrySet()) {
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