From: joy <> Date: Mon, 14 Apr 2003 18:14:51 +0000 (-0800) Subject: [project @ 2003-04-14 11:14:51 by joy] X-Git-Tag: release/2.6.0~932 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e93d301401d5692306de4ef00e38cb3ca83f4036;p=debbugs.git [project @ 2003-04-14 11:14:51 by joy] use the internal date/time function, Luke --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index f7d5c98d..c668d946 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -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 ];