Re: DateUtils#getNow
Emmanuel Bourg <[email protected]> Sat, 25 Jul 2026 20:28:40 +0200
| Newsgroups | gmane.comp.jakarta.ant.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Stefan, Le 25/07/2026 à 12:35, Stefan Bodewig a écrit : > The new methods uses the same three external sources using the same > priorities as <tstamp>. It returns a tuple of "now" and a boolean flag > that indicates whether reproducible builds are requested by the user - > which only is true if SOURCE_DATE_EPOCH is set. This matches the logic > in tstamp which forces the timezone to be UTC and locale to be en_US if > the environment variable is set. I'm not 100% sure this is the right > decision but more than 50% :-). Mixing the date and the reproducible status in the same return value doesn't look great. What about adding a isReproducibleBuild() method instead? I don't know where it would fit the best though, DateUtils doesn't look right. Maybe in Project? Emmanuel Bourg