From: Simon Josefsson Date: Fri, 12 Apr 2024 15:25:16 +0000 (+0200) Subject: gitlog-to-changelog: Make output reproducible. X-Git-Tag: v1.0~116 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=dfb71172a46ef41f8cf8ab7ca529c1dd3097a41d;p=gnulib.git gitlog-to-changelog: Make output reproducible. * build-aux/gitlog-to-changelog: Use gmtime instead of localtime. --- diff --git a/ChangeLog b/ChangeLog index cdbb53ff8a..b20f69b06b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-04-12 Simon Josefsson + + gitlog-to-changelog: Make output reproducible. + * build-aux/gitlog-to-changelog: Use gmtime instead of localtime. + 2024-04-12 Bruno Haible gnulib-tool.py: Fix parsing of gl_LGPL in gnulib-cache.m4. diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 16a9405a7c..e06106490c 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -35,7 +35,7 @@ eval 'exec perl -wSx "$0" "$@"' if 0; -my $VERSION = '2023-06-24 21:59'; # UTC +my $VERSION = '2024-04-12 15:23'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -360,7 +360,7 @@ sub git_dir_option($) ? ' (tiny change)' : ''); my $date_line = sprintf "%s %s$tiny\n", - strftime ("%Y-%m-%d", localtime ($1)), $2; + strftime ("%Y-%m-%d", gmtime ($1)), $2; my @coauthors = grep /^Co-authored-by:.*$/, @line; # Omit meta-data lines we've already interpreted.