Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8279182

MakeZipReproducible ZipEntry timestamps not localized to UTC

XMLWordPrintable

    • b04

        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().

              aleonard Andrew Leonard
              aleonard Andrew Leonard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: