Skip to content

Commit 79e9f28

Browse files
reinerhoberpar
authored andcommitted
lcov: use UTC to get timezone-independent date
The date is used for updating the time inside manpages. If localtime is used, the date could vary depending on the user's timezone. To enable reproducible builds, UTC is used instead. Signed-off-by: Reiner Herrmann <[email protected]>
1 parent de33f51 commit 79e9f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/updateversion.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ($)
8383

8484
return (0, 0, 0) if (!-e $filename);
8585
@stat = stat($filename);
86-
($sec, $min, $hour, $day, $month, $year) = localtime($stat[9]);
86+
($sec, $min, $hour, $day, $month, $year) = gmtime($stat[9]);
8787
$year += 1900;
8888
$month += 1;
8989

0 commit comments

Comments
 (0)