-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b04
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8282888 | 17.0.4 | Andrew Leonard | P4 | Resolved | Fixed | b01 |
If a reproducible build is done from a non-UTC timezone, the ZipEntry timestamps produced by MakeZipReproducible are not localized to UTC.
eg. using --with-source-date=version for jdk-19 should produce a zip date of
2022-09-20 00:00
however if built on say EST(-5:00) it produces
2022-09-19 19:00
For reproducibility the localized ZipEntry timestamps must be localized to UTC.
The reason is because MakeZipReproducible uses ZipEntry.setTime() rather than setTimeLocal().
eg. using --with-source-date=version for jdk-19 should produce a zip date of
2022-09-20 00:00
however if built on say EST(-5:00) it produces
2022-09-19 19:00
For reproducibility the localized ZipEntry timestamps must be localized to UTC.
The reason is because MakeZipReproducible uses ZipEntry.setTime() rather than setTimeLocal().
- backported by
-
JDK-8282888 MakeZipReproducible ZipEntry timestamps not localized to UTC
-
- Resolved
-