]> Savannah Git Hosting - gnulib.git/commitdiff
gitlog-to-changelog: Make output reproducible.
authorSimon Josefsson <simon@josefsson.org>
Fri, 12 Apr 2024 15:25:16 +0000 (17:25 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 12 Apr 2024 15:26:32 +0000 (17:26 +0200)
* build-aux/gitlog-to-changelog: Use gmtime instead of localtime.

ChangeLog
build-aux/gitlog-to-changelog

index cdbb53ff8a931917f11b5e070f6ba154d53f4550..b20f69b06b581c0d9aaf8e9b1811e39419189611 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-12  Simon Josefsson  <simon@josefsson.org>
+
+       gitlog-to-changelog: Make output reproducible.
+       * build-aux/gitlog-to-changelog: Use gmtime instead of localtime.
+
 2024-04-12  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Fix parsing of gl_LGPL in gnulib-cache.m4.
index 16a9405a7cb50200ef5f830dbd61bf29d46178e5..e06106490c6ac345e45c1a9040bb49cbcffd2593 100755 (executable)
@@ -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.