From: joy <> Date: Sun, 25 May 2003 20:19:13 +0000 (-0800) Subject: [project @ 2003-05-25 13:19:13 by joy] X-Git-Tag: release/2.6.0~897 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=221fff5b4b0a251baede1c34a72f7546bc6ed26d;p=debbugs.git [project @ 2003-05-25 13:19:13 by joy] use internal function to get date and time, rather than forking date(1). also changed format to a less wacky one. --- diff --git a/scripts/db2html.in b/scripts/db2html.in index 4fccc7be..1159ec97 100755 --- a/scripts/db2html.in +++ b/scripts/db2html.in @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: db2html.in,v 1.14 2003/05/03 20:01:20 doogie Exp $ +# $Id: db2html.in,v 1.15 2003/05/25 13:19:13 joy Exp $ # usage: db2html [-diff] [-stampfile=] [-lastrun=] #load the necessary libraries/configuration @@ -11,6 +11,8 @@ require("$config_path/text"); require("$lib_path/errorlib"); $ENV{'PATH'} = $lib_path.':'.$ENV{'PATH'}; +use POSIX qw(strftime); + #set current working directory chdir("$gSpoolDir") || die "chdir spool: $!\n"; @@ -28,7 +30,7 @@ $indexunmatched = ''; 'forwarded','forwarded to upstream software authors'); #set timestamp for html files -chop($dtime=`date -u '+%H:%M:%S GMT %a %d %h'`); $? and die $?; +$dtime = strftime "%a, %e %b %Y %T UTC", localtime; $tail_html =~ s/SUBSTITUTE_DTIME/$dtime/; #check for commandline switches