On Mon, 7 Mar 2022 22:47:13 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:

> The BSD version of the date command that ships with macOS cannot handle all 
> ISO 8601 formats. More specifically, it cannot handle trailing milliseconds.
> 
> This fix will allow it to be more tolerant.

Yes, in theory we are. In practice, ISO 8601 timestamps tend to use UTC (ending 
with Z), which this will default to. But if a non-UTC timestamp was present, it 
will be lost.

The alternative is that configure crashes. :( I think that's worse. In all 
honesty, people suck at getting time zone information correct anyway ;-)

Ideally, there would be a date format string that ignores the decimals. 
However, the %3N syntax seems to be GNU specific and not understood by BSD 
date, and I've found no other way. (The official documentation is really, 
really bad at presenting the legal format codes for parsing.)

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

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

Reply via email to