On Tue, 30 Nov 2021 18:52:56 GMT, Andrew Leonard <aleon...@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

Reply via email to