]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-05-25 13:19:13 by joy]
authorjoy <>
Sun, 25 May 2003 20:19:13 +0000 (12:19 -0800)
committerjoy <>
Sun, 25 May 2003 20:19:13 +0000 (12:19 -0800)
use internal function to get date and time, rather than forking date(1). also changed format to a less wacky one.

scripts/db2html.in

index 4fccc7be9d7fd792a2e226836c12770757a89cdd..1159ec9757ce81941d2cea574661bfb62a3f38f1 100755 (executable)
@@ -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=<stampfile>] [-lastrun=<days>] <wwwbase>
 
 #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