Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
antlr3
reproducible-timestamp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible-timestamp.patch of Package antlr3
--- antlr3-3.5.3/tool/src/main/java/org/antlr/Tool.java 2023-09-15 17:54:38.044172037 +0200 +++ antlr3-3.5.3/tool/src/main/java/org/antlr/Tool.java 2023-09-15 17:54:49.090915002 +0200 @@ -1052,6 +1052,9 @@ */ public static String getCurrentTimeStamp() { GregorianCalendar calendar = new java.util.GregorianCalendar(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + calendar.setTimeInMillis(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } int y = calendar.get(Calendar.YEAR); int m = calendar.get(Calendar.MONTH) + 1; // zero-based for months int d = calendar.get(Calendar.DAY_OF_MONTH);
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