* Makefile (set-timestamps.out): Use --date=format-local:...,
not --date=format:..., because TZ is UTC0 and we want UTC
not the committer’s local time.
---
Makefile | 2 +-
NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5b05877c..079bb530 100644
--- a/Makefile
+++ b/Makefile
@@ -1109,7 +1109,7 @@ set-timestamps.out: $(EIGHT_YARDS)
if git diff --quiet HEAD $$file; then \
time=$$(TZ=UTC0 git log -1 \
--format='tformat:%cd' \
- --date='format:%Y-%m-%dT%H:%M:%SZ' \
+ --date='format-local:%Y-%m-%dT%H:%M:%SZ' \
$$file) && \
echo "+ touch -md $$time $$file" && \
touch -md $$time $$file; \
diff --git a/NEWS b/NEWS
index 071659c8..7a05aeb9 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,9 @@ Unreleased, experimental changes
Changes to build procedure
+ Files in distributed tarballs now have correct commit times.
+ Formerly, the committer's time zone was incorrectly ignored.
+
Distribution products (*.asc, *.gz, and *.lz) now have
reproducible timestamps. Formerly, only the contents of the
compressed tarballs had reproducible timestamps.
--
2.48.1