]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-04-14 11:14:51 by joy]
authorjoy <>
Mon, 14 Apr 2003 18:14:51 +0000 (10:14 -0800)
committerjoy <>
Mon, 14 Apr 2003 18:14:51 +0000 (10:14 -0800)
use the internal date/time function, Luke

cgi/bugreport.cgi

index f7d5c98da56fe7bc159c5cd6191c1a56c87e8881..c668d94604864a0bb5a83fe7f11b07497397c54d 100755 (executable)
@@ -345,9 +345,7 @@ if ( $mbox ) {
                        $lines[ 1 ] = $tmp;
                }
                if ( !( $lines[ 0 ] =~ m/^From / ) ) {
-                       $ENV{ PATH } = "/bin:/usr/bin:/usr/local/bin";
-                       my $date = `date "+%a %b %d %T %Y"`;
-                       chomp $date;
+                       my $date = strftime "%a %b %d %T %Y", localtime;
                        unshift @lines, "From unknown $date";
                }
                map { s/^(>*From )/>$1/ } @lines[ 1 .. $#lines ];