RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

John Neffenger jgneff at openjdk.java.net
Tue Nov 30 19:35:08 UTC 2021


On Tue, 30 Nov 2021 18:52:56 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:

> Both basically truncate the timezone.

There's a difference. The first option saves a DOS date and time that depends on the time zone of the build machine due to the ISO 8601 string returned by default from the `git` and `date` commands, which is what everyone will be using. Those commands return the local time zone offset by default, which is what breaks your current implementation.

The second option converts to a DOS date and time that is independent of the time zone of the build machine, as long as you stay withing the range of its values, as you discovered.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6481


More information about the compiler-dev mailing list