X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Ftarman;h=10928a356349b8230fa22b6b59a8c6e2d87fe3fc;hb=a44053dd28b8fc6ba3fb29026745c336d994379e;hp=70169311191018dfb5dc1ea131b86b509a2798ea;hpb=63a2b079ddfb5dea3a7994a5f463703df099d6af;p=debian%2Ftar diff --git a/debian/tarman b/debian/tarman index 70169311..10928a35 100644 --- a/debian/tarman +++ b/debian/tarman @@ -4,9 +4,10 @@ # use strict; +use POSIX qw(strftime); -my $t = "".localtime(time); -my $datestr = substr($t,4,3)." ".substr($t,8,2).", ".substr($t,20,4); +my $t = $ENV{'BUILD_DATE'} // strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time)); +my $datestr = substr($t,8,3)." ".substr($t,5,2).", ".substr($t,12,4); @ARGV=qw(src/tar.c); my $mode;