diff options
author | Brendan O'Dea <bod@debian.org> | 2017-09-23 13:36:12 +1000 |
---|---|---|
committer | Brendan O'Dea <bod@debian.org> | 2017-09-23 13:36:12 +1000 |
commit | e1feb7d81eccf4fa2cdeec1df64f0a0d3c522a25 (patch) | |
tree | 61635cc441fc3c80341ede9fb94d658a964784e7 /help2man.PL | |
parent | f85fd2eabcd6996e456b99f6db89acb141e01694 (diff) | |
download | help2man-e1feb7d81eccf4fa2cdeec1df64f0a0d3c522a25.tar.gz |
Use POSIX compliant TZ when setting UTC
Diffstat (limited to 'help2man.PL')
-rwxr-xr-x | help2man.PL | 6 |
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 |