summaryrefslogtreecommitdiff
path: root/help2man.PL
diff options
context:
space:
mode:
authorBrendan O'Dea <bod@debian.org>2017-09-23 13:36:12 +1000
committerBrendan O'Dea <bod@debian.org>2017-09-23 13:36:12 +1000
commite1feb7d81eccf4fa2cdeec1df64f0a0d3c522a25 (patch)
tree61635cc441fc3c80341ede9fb94d658a964784e7 /help2man.PL
parentf85fd2eabcd6996e456b99f6db89acb141e01694 (diff)
downloadhelp2man-e1feb7d81eccf4fa2cdeec1df64f0a0d3c522a25.tar.gz
Use POSIX compliant TZ when setting UTC
Diffstat (limited to 'help2man.PL')
-rwxr-xr-xhelp2man.PL6
1 files changed, 3 insertions, 3 deletions
diff --git a/help2man.PL b/help2man.PL
index 9ca2711..c6e4fa2 100755
--- a/help2man.PL
+++ b/help2man.PL
@@ -367,15 +367,15 @@ my $help_text = get_option_value $ARGV[0], $help_option;
$version_text ||= get_option_value $ARGV[0], $version_option;
# By default the generated manual pages will include the current date. This may
-# however be overriden by setting the environment variable $SOURCE_DATE_EPOCH
-# to an integer value of the seconds since the UNIX epoch. This is primarily
+# however be overriden by setting the environment variable $SOURCE_DATE_EPOCH to
+# an integer value of the seconds since the UNIX epoch. This is primarily
# intended to support reproducible builds (wiki.debian.org/ReproducibleBuilds)
# and will additionally ensure that the output date string is UTC.
my $epoch_secs = time;
if (exists $ENV{SOURCE_DATE_EPOCH} and $ENV{SOURCE_DATE_EPOCH} =~ /^(\d+)$/)
{
$epoch_secs = $1;
- $ENV{TZ} = 'UTC';
+ $ENV{TZ} = 'UTC0';
}
# Translators: the following message is a strftime(3) format string, which in